This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [rfc] Whole program optimization
- From: Richard Henderson <rth at redhat dot com>
- To: Geoffrey Keating <geoffk at geoffk dot org>
- Cc: Jan Hubicka <jh at suse dot cz>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 27 May 2005 13:23:48 -0700
- Subject: Re: [rfc] Whole program optimization
- References: <20050525232400.GC18902@kam.mff.cuni.cz> <m2oeaxe8zq.fsf@greed.local>
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~