This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -fvisibility-inlines-hidden not hiding inline methods?


Lassi Tuura <lat@cern.ch> writes:

> We are using GCC 4.3.2 + binutils 2.19.1 on a RHEL4-derived system.
> We're testing -fvisibility-inlines-hidden, and don't quite understand
> what it does. We are seeing some but not all inline functions getting
> emitted out-of-line as public weak symbols and calls to them going
> via the PLT; the documentation seems to indicate this would not
> happen.

-fvisibility-inlines-hidden only affects inline methods.  It does not
affect inline functions which are not methods.  E.g., your test cases
uses std::sort, but std::sort is not an inline method of any class.  In
general -fvisibility-inlines-hidden does not apply to template
instantiations, since that would break explicit instantiations.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]