[PATCH] fix PR51910, take 2

Jason Merrill jason@redhat.com
Wed Feb 8 09:44:00 GMT 2012


On 02/02/2012 11:27 PM, Jakub Jelinek wrote:
> Anyway, here is the tweaking all the symbols that demangle the same
> equally patch (untested so far) as an alternative.  On the example it
> unfortunately causes also the D2 dtor into the link which wasn't there
> otherwise (and with -Wl,--no-demangle).  While D2 dtors are generally small,
> perhaps it will sometimes force into the link also ctor or dtor variants
> that couldn't be aliased together.

Hmm, I wrote up something quite similar on the plane.  One difference is 
that mine synchronizes .rpo files that start with some variants chosen 
and others not.  Does this make sense to you?

> I wonder if it wouldn't be better to just use a linker plugin for -frepo
> if the linker supports plugins.

Probably.  But I don't feel motivated to write it.

Jason
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 51910.patch
Type: text/x-patch
Size: 5843 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120208/f537151a/attachment.bin>


More information about the Gcc-patches mailing list