diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2015-11-17 16:07:15 -0500 |
---|---|---|
committer | Sandra Loosemore <sandra@gcc.gnu.org> | 2015-11-17 16:07:15 -0500 |
commit | 9f50f67c0bcb8b0a1723c6ce132e9f3b93a9134e (patch) | |
tree | 5a7d49a36e4814dc52a6d9f6257d08810c48d009 /gcc | |
parent | bef08b718f9cacd17fb74fab77b125d2c92b7493 (diff) | |
download | gcc-9f50f67c0bcb8b0a1723c6ce132e9f3b93a9134e.zip gcc-9f50f67c0bcb8b0a1723c6ce132e9f3b93a9134e.tar.gz gcc-9f50f67c0bcb8b0a1723c6ce132e9f3b93a9134e.tar.bz2 |
re PR c/48568 (Missing documentation for __attribute__((visibility ("protected"))) on variables.)
2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
PR 48568
* doc/extend.texi (Common Function Attributes) [visibility]:
Add cross-references to matching variable and type attributes.
(Common Variable Attributes) [visibility]: Add missing entry.
From-SVN: r230498
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c3229fc..70e7f20 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2015-11-17 Sandra Loosemore <sandra@codesourcery.com> + + PR 48568 + * doc/extend.texi (Common Function Attributes) [visibility]: + Add cross-references to matching variable and type attributes. + (Common Variable Attributes) [visibility]: Add missing entry. + 2015-11-17 Richard Sandiford <richard.sandiford@arm.com> * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index a81f8df..63fce0f 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -3216,6 +3216,9 @@ class itself is instantiated. @item visibility ("@var{visibility_type}") @cindex @code{visibility} function attribute This attribute affects the linkage of the declaration to which it is attached. +It can be applied to variables (@pxref{Common Variable Attributes}) and types +(@pxref{Common Type Attributes}) as well as functions. + There are four supported @var{visibility_type} values: default, hidden, protected or internal visibility. @@ -5660,6 +5663,12 @@ struct S __attribute__ ((vector_size (16))) foo; is invalid even if the size of the structure is the same as the size of the @code{int}. +@item visibility ("@var{visibility_type}") +@cindex @code{visibility} variable attribute +This attribute affects the linkage of the declaration to which it is attached. +The @code{visibility} attribute is described in +@ref{Common Function Attributes}. + @item weak @cindex @code{weak} variable attribute The @code{weak} attribute is described in |