"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
Wilfred Hughes