[Cbe-oss-dev] [PATCH] use -fvisibility=hidden in libspe

Christoph Hellwig hch at lst.de
Sun Jul 2 12:27:42 EST 2006


On Sat, Jul 01, 2006 at 06:40:02PM -0700, Andrew Pinski wrote:
> 
> On Jul 1, 2006, at 3:38 AM, Christoph Hellwig wrote:
> 
> >We can control visibility of symbols in ELF libraries.  The default
> >visibility allows everyone to see the symbols and means they need  
> >to go
> >through .GOT indirections, etc.  Switching the visibility to hidden  
> >for
> >all non-API symbols allows to reduce size of the library and speed it
> >up.  Besides keeping people from using internal symbols, of course.
> 
> I agree this is a good thing but it should be noted that to some extend
> there are problems with -fvisibility=hidden in GCCs before July 1,  
> 2006's
> mainline (at least in C++).

libspe is purely C.  I haven't heard about any -fvisibility bugs for C
code, but if you as a gcc insider know any I'd be interested in hearing
about the issues.




More information about the cbe-oss-dev mailing list