This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC 4.6.1 emits discriminators in DWARF2 mode


Hi,

I have recently switched to using GCC 4.6.1 (from 4.5.1) for AVR
target which supports only DWARF2 format. Now I notice a change in
.debug_line section format in 4.6.1.  A quick look at the assembly
shows that '.loc' directives are emitted with discriminators.


Firstly, aren't discriminators introduced in DWARF 4? Little more
digging shows that the following fix is missing in 4.6.1 release. It
breaks the current dwarf2 parsers/readers. I think it is worth filing
a bug.

http://gcc.gnu.org/viewcvs/trunk/gcc/dwarf2out.c?r1=171846&r2=171852&diff_format=h

Secondly, in gcc4.5.1, the directive (.loc) is not emitted and still
we are able to map line numbers to address. Please help me understand
how introducing .loc directive affects debug_line format in gcc 4.6.1.

Thanks
--
?Anitha


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]