This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -g broken for DWARF2 on x86 platforms
- To: Jason Merrill <jason at cygnus dot com>
- Subject: Re: -g broken for DWARF2 on x86 platforms
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 23 Nov 1997 22:52:23 -0800
- cc: jkj at sco dot com (J. Kean Johnston), gcc2 at cygnus dot com, egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <u9pvnqiyyr.fsf@yorick.cygnus.com>you write:
> >>>>> J Kean Johnston <jkj@sco.com> writes:
>
> > Compiling C++ stuff with -g is broken on any platform with uses (or can
> > use) DWARF or DWARF2. Both on SCO and Linux dwarf2 -g causes unknown
> > symbols (for example .L_T6310) to be output.
>
> -gdwarf2 produces DWARF 1 output (debug level 2).
> -gdwarf-2 produces DWARF 2 output.
> The undefined symbol bug appears only to affect dwarf 1.
Well, my guess wasn't correct. Though I think it's close. Someone who
knows more about dwarf will have to look at it.
Basically I'd concentrate on the array element code, that's what's creating
the reference to an undefined label.
jeff