Commit 9f50f67c by Sandra Loosemore Committed by Sandra Loosemore

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
parent bef08b71
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> 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
* config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
...@@ -3216,6 +3216,9 @@ class itself is instantiated. ...@@ -3216,6 +3216,9 @@ class itself is instantiated.
@item visibility ("@var{visibility_type}") @item visibility ("@var{visibility_type}")
@cindex @code{visibility} function attribute @cindex @code{visibility} function attribute
This attribute affects the linkage of the declaration to which it is attached. 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, There are four supported @var{visibility_type} values: default,
hidden, protected or internal visibility. hidden, protected or internal visibility.
...@@ -5660,6 +5663,12 @@ struct S __attribute__ ((vector_size (16))) foo; ...@@ -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 is invalid even if the size of the structure is the same as the size of
the @code{int}. 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 @item weak
@cindex @code{weak} variable attribute @cindex @code{weak} variable attribute
The @code{weak} attribute is described in The @code{weak} attribute is described in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment