r192300 - Use aliases for more constructors and destructors.

Rui Ueyama ruiu at google.com
Wed Oct 9 20:56:16 PDT 2013


After this patch is submitted, gold linker started printing bunch of
"warning: relocation refers to discarded section" warning messages. I don't
know if this is a bug of gold or this patch. Rafael, do you have any idea?


On Wed, Oct 9, 2013 at 5:14 PM, Eric Christopher <echristo at gmail.com> wrote:

> On Wed, Oct 9, 2013 at 2:14 PM, Rafael EspĂ­ndola
> <rafael.espindola at gmail.com> wrote:
> > The problem seems to be that clang produces
> >
> > _ZN7DerivedD1Ev = _ZN7DerivedD2Ev
> > _ZN7DerivedD2Ev = _ZN4BaseD2Ev
> >
> > While gcc is less aggressive:
> >
> > .set _ZN7DerivedD1Ev,_ZN7DerivedD2Ev
> >
> > Should we disable the "derived destructor == base destructor"
> > optimization at -O0?
> >
>
> We definitely shouldn't disable it at a particular optimization level
> just to make debugging easier. The testcase isn't very clear why it
> expects that we should be able to go up from the derived destructor to
> the base destructor here.
>
> -eric
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131009/1e44e6e7/attachment.html>


More information about the cfe-commits mailing list