This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] PR 12389
On Mon, Oct 20, 2003 at 06:02:11PM +0200, Jan Hubicka wrote:
> >
> > > How this is different with -O3? Then we can inline even functions not
> > > declared inline (this actually happens even for functions called once at
> > > -O2) so perhaps we need abstract instances for all functions just for
> > > sure as we don't know what happens in the other unit?
> >
> > No, that seems like overkill. Debugging at -O3 is already pretty dodgy.
>
> OK, we also inilne static functions called once as -O2, but I guess these does
> not happen for shared headers either, so I would say that ignoring this
> is fine in the case it won't do something really bad (like producing
> undefined symbols when accessing the abstract die from other unit or so)
> > >
> > > We use -feliminate-dwarf2-dups on hammer-branch compiler and it works at
> > > least there.
> >
> > Hmm, perhaps someone fixed GDB while I wasn't looking. It doesn't seem to
> > have been Zdenek, though; he doesn't appear in the GDB ChangeLog.
>
> I seem to recall that he was about to fix it and found that it has been
> already done... don't reacall details tought, but definitly I seen
> version of GDB that support -feliminate-dwarf2-dups
I believe SuSE and others ship GDB with patches for this. It isn't
done in the version on sources.redhat.com.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer