Re: help on fucntion visibility

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Artūras

Is the macro you mention about HAVE_GCCVISIBILITYPATCH? If it is an
official macro, where can I find the documentation for it? 

Thanks again :) 

--Irene

On Wed, 2006-12-06 at 10:51 +0200, Artūras Moskvinas wrote:
> 
> > 
> > I know that the current version gcc supports function visibility
> > attributes, yet some of the previous versions does not. 
> > 
> > Could any one kindly tell since which version is visibility attribute
> > supported by gcc? So that I will be able to write some conditional
> > macros definition code to make things more flexible? 
> > 
> > The macro definition is supposed to be something like:
> > #if ((__GNUC__ *100 +__GNUC_MINOR__) >= 303)
> > #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
> > #else
> > #define G_GNUC_INTERNAL
> > #endif
> > 
> Look at this wiki entry for checking visibility(a macros is already
> there...):
> http://gcc.gnu.org/wiki/Visibility
> 
> And by reading manual, you will find, that visibility attribute appeared
> in 3.3 release (earlier compiler do not have this option documented in
> manual)
> 
> 
> Arturas M.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux