summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-27 06:32:13 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-27 06:32:13 +0000
commit2d0ba1066e5feffa551e7fc99eb772c5308f67cd (patch)
treecc2e1d8a566925797265abddc36ab7ef795c9d6b
parent8cf34b34f883b383072b1ee2cde9584f97c19de6 (diff)
downloadppe42-gcc-2d0ba1066e5feffa551e7fc99eb772c5308f67cd.tar.gz
ppe42-gcc-2d0ba1066e5feffa551e7fc99eb772c5308f67cd.zip
* c-common.c (handle_visibility_attribute): Accept "default".
* tree.h (enum symbol_visibility): New. (decl_visibility): Declare. * target.h (gcc_target.visibility): Take visibility arg as integer. * varasm.c (default_assemble_visibility): Likewise. (decl_visibility): New. (maybe_assemble_visibility): Use it. * output.h (default_assemble_visibility): Update prototype. * config/rs6000/rs6000.c (rs6000_assemble_visibility): Take visibility arg as integer. * doc/extend.texi: Document default visibility. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59560 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog1
-rw-r--r--gcc/doc/extend.texi7
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 94e48a5bbda..b14a24e5f84 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -10,6 +10,7 @@
* output.h (default_assemble_visibility): Update prototype.
* config/rs6000/rs6000.c (rs6000_assemble_visibility): Take
visibility arg as integer.
+ * doc/extend.texi: Document default visibility.
2002-11-26 Kazu Hirata <kazu@cs.umass.edu>
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 0b60c60454a..fad4d8609af 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -2307,7 +2307,7 @@ Not all target machines support this attribute.
@item visibility ("@var{visibility_type}")
@cindex @code{visibility} attribute
The @code{visibility} attribute on ELF targets causes the declaration
-to be emitted with hidden, protected or internal visibility.
+to be emitted with default, hidden, protected or internal visibility.
@smallexample
void __attribute__ ((visibility ("protected")))
@@ -2318,6 +2318,11 @@ int i __attribute__ ((visibility ("hidden")));
See the ELF gABI for complete details, but the short story is
@table @dfn
+@item default
+Default visibility is the normal case for ELF. This value is
+available for the visibiliy attribute to override other options
+that may change the assumed visibility of symbols.
+
@item hidden
Hidden visibility indicates that the symbol will not be placed into
the dynamic symbol table, so no other @dfn{module} (executable or
OpenPOWER on IntegriCloud