]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR other/58467 (Documentation of the "used" variable attribute needs additional...
authorMarek Polacek <polacek@redhat.com>
Fri, 20 Sep 2013 06:08:44 +0000 (06:08 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 20 Sep 2013 06:08:44 +0000 (06:08 +0000)
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

gcc/ChangeLog
gcc/doc/extend.texi

index 1a12eda9188d4f3924970edd378c0a6db4a5e0e0..f02617bf926c76eef349002e4f9c721980693862 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/58472
index 1d0dfbe985d4a860df8cbc2e0666d3fb46369bfb..edf0e2851bc40eee9c4038d6b237f98bb12d001f 100644 (file)
@@ -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