[rfc] Whole program optimization

Richard Henderson rth@redhat.com
Fri May 27 20:25:00 GMT 2005


On Thu, May 26, 2005 at 06:46:33PM -0700, Geoffrey Keating wrote:
> > I remember that we discussed this with Richard while past and Richard
> > argued that ELF visibility flags should be used instead.  I don't have
> > archive of the disucssion and I am not quite convinced that this is
> > possible (this is quite ortoghonal issue to the visibility outside
> > linked object), so if I miss something here, please enlighten me.
> 
> I believe that the idea here was that instead of
> __attribute__((used)), you would use
> __attribute__((visibility("default"))) or
> __attribute__((visibility("hidden"))) or
> __attribute__((visibility("protected"))).  That is, this new functionality
> would be equivalent to saying -fvisibility=internal.

Indeed.  The point is that we have existing options to control
visibility of symbols.  We do not need another.



r~



More information about the Gcc-patches mailing list