aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2013-09-20 06:08:44 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2013-09-20 06:08:44 +0000
commit87fccdbba54094e22aeaeeee924e7e8ca397e075 (patch)
treec1dc75679b9915868a1af366f307268a1b5f0e62 /gcc/doc
parentaeca9c2e7504f96f872d04d8aec7b46f507e6f46 (diff)
downloadgcc-87fccdbba54094e22aeaeeee924e7e8ca397e075.zip
gcc-87fccdbba54094e22aeaeeee924e7e8ca397e075.tar.gz
gcc-87fccdbba54094e22aeaeeee924e7e8ca397e075.tar.bz2
re PR other/58467 (Documentation of the "used" variable attribute needs additional information)
2013-09-20 Marek Polacek <polacek@redhat.com> PR other/58467 * doc/extend.texi: Document that attribute used is meant to be used on variables with static storage duration. From-SVN: r202764
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/extend.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 1d0dfbe..edf0e28 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -4891,8 +4891,9 @@ to be possibly unused. GCC does not produce a warning for this
variable.
@item used
-This attribute, attached to a variable, means that the variable must be
-emitted even if it appears that the variable is not referenced.
+This attribute, attached to a variable with the static storage, means that
+the variable must be emitted even if it appears that the variable is not
+referenced.
When applied to a static data member of a C++ class template, the
attribute also means that the member is instantiated if the