"Significant effort has been put into making optimization output agnostic of the -gsetting (so you can rebuild binary with debug info after your program core dumped and use it to debug the core dump)" Impressive gcc features discussed in https://hubicka.blogspot.com/2018/06/gcc-8-link-time-and-interprocedural.html