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

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

 



Lassi Tuura <lat@xxxxxxx> 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 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