This is the mail archive of the gcc-patches@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: visibility control for explicit instantiations


On Jul 21, 2006, at 9:58 AM, Jason Merrill wrote:
OK, but please document this in invoke.texi.

Hum... So many possibilities... How about the below?


2006-07-21 Mike Stump <mrs@apple.com>

        * doc/invoke.texi (C++ Dialect Options): Note that
        -fvisibility-inlines-hidden doesn't affect explicitly
        instantiationed inline methods.

Doing diffs in doc:
--- doc/invoke.texi.~1~ 2006-07-20 15:43:45.000000000 -0700
+++ doc/invoke.texi 2006-07-21 12:37:38.000000000 -0700
@@ -1616,6 +1616,9 @@ appear in the export table of a DSO and
when used within the DSO@. Enabling this option can have a dramatic effect
on load and link times of a DSO as it massively reduces the size of the
dynamic export table when the library makes heavy use of templates.
+Note however that explicitly instantiated inline methods are
+unaffected by this option as their linkage might otherwise cross a
+shared library boundary. @xref{Template Instantiation}.


The behaviour of this switch is not quite the same as marking the
methods as hidden directly, because it does not affect static variables
--------------



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