This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 4.6.1 emits discriminators in DWARF2 mode
> 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_f
>ormat=h
Yes, this is a real nuisance for some DWARF consumers. You need to ask a RM
about backporting the fix.
> 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.
.loc directives are processed by the assembler, which then builds .debug_line.
--
Eric Botcazou