From 79ff98c55e1b0b16aea12edd183f9c9eb8f73220 Mon Sep 17 00:00:00 2001 From: sandra Date: Tue, 17 Nov 2015 21:07:15 +0000 Subject: [PATCH] 2015-11-17 Sandra Loosemore 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230498 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/doc/extend.texi | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c3229fc5789c..70e7f2040797 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2015-11-17 Sandra Loosemore + + 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 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index a81f8df0a240..63fce0f9cf4a 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 -- 2.47.2