aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2006-07-13 06:16:59 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2006-07-13 06:16:59 +0000
commit7c0de6a544ba5d293eab1f91b70e017ef5d5834f (patch)
treed0cf7502eabafc2262e5a615fdbd20410a69b531 /gcc/doc
parent72af9f0b517b8dec055f72bf2ba7bfcb2e8da99b (diff)
downloadgcc-7c0de6a544ba5d293eab1f91b70e017ef5d5834f.zip
gcc-7c0de6a544ba5d293eab1f91b70e017ef5d5834f.tar.gz
gcc-7c0de6a544ba5d293eab1f91b70e017ef5d5834f.tar.bz2
Index: ChangeLog
2006-07-12 Geoffrey Keating <geoffk@apple.com> * doc/invoke.texi (C++ Dialect Options): Explain difference between -fvisibility-inlines-hidden and setting hidden visibility explicitly. Index: cp/ChangeLog 2006-07-12 Geoffrey Keating <geoffk@apple.com> * decl2.c (determine_visibility): Don't change visibility of function locals because of -fvisibility-inlines-hidden. Index: testsuite/ChangeLog 2006-07-12 Geoffrey Keating <geoffk@apple.com> * g++.dg/ext/visibility/fvisibility-inlines-hidden-2.C: New. From-SVN: r115411
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi9
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 59830ec..0a1a917 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -1618,10 +1618,15 @@ 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.
+The behaviour of this switch is not quite the same as marking the
+methods as hidden directly, because it does not affect static variables
+local to the function or cause the compiler to deduce that
+the function is defined in only one shared object.
+
You may mark a method as having a visibility explicitly to negate the
effect of the switch for that method. For example, if you do want to
-compare pointers to a particular inline method, or the method has
-local static data, you might mark it as having default visibility.
+compare pointers to a particular inline method, you might mark it as
+having default visibility.
@item -fno-weak
@opindex fno-weak