Re: Emitting discardable per-function DWARF debug_info

2014-01-13 Thread Jason Merrill
On 01/13/2014 07:12 AM, Senthil Kumar Selvaraj wrote: I have been hacking a bit on dwarf2out.c to make gcc generate DWARF information that gets discarded along with the appropriate function section code when compiled with -ffunction-sections and then linked with --gc-sections. Currently, debug in

Emitting discardable per-function DWARF debug_info

2014-01-13 Thread Senthil Kumar Selvaraj
I have been hacking a bit on dwarf2out.c to make gcc generate DWARF information that gets discarded along with the appropriate function section code when compiled with -ffunction-sections and then linked with --gc-sections. Currently, debug information for discarded functions is not removed, an