This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: DWARF broken?
> Thanks! Yes, I meant -gdwarf-2 and that *does* work.
> Still, -gdwarf is broken apparently; I don't think
> that using a different -g option should have influence
> in the sense of undefined references.
It shouldn't. It often does. This is the hands-down most common
failure case of Dwarf-1 in the compiler. The reality is that
exceedingly few active targets use dwarf-1, so it's not heavily tested.
The people that do understand dwarfout.c and the upstream generators are
using stabs or increasingly dwarf-2.
For languages other than C, I came to expect dwarf-1 to be broken. It's
for that reason that I moved my target from dwarf-1 to dwarf-2.
RJL