This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: PR middle-end/20274: -fvisibility=hidden has no effect on calling undefined function
- From: "H. J. Lu" <hjl at lucon dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 2 Mar 2005 09:43:26 -0800
- Subject: PATCH: PR middle-end/20274: -fvisibility=hidden has no effect on calling undefined function
This patch makes it clear that -fvisibility is only for defined
symbols.
H.J.
----
2005-03-02 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/20274
* doc/invoke.texi: Document -fvisibility only applies to
defined symbols.
--- gcc/doc/invoke.texi.defined 2005-02-27 22:11:46.000000000 -0800
+++ gcc/doc/invoke.texi 2005-03-02 09:39:02.362656215 -0800
@@ -12320,7 +12320,7 @@ The default without @option{-fpic} is @c
@item -fvisibility=@var{default|internal|hidden|protected}
@opindex fvisibility
Set the default ELF image symbol visibility to the specified option---all
-symbols will be marked with this unless overridden within the code.
+defined symbols will be marked with this unless overridden within the code.
Using this feature can very substantially improve linking and
load times of shared object libraries, produce more optimized
code, provide near-perfect API export and prevent symbol clashes.