diff options
author | Ryan Mansfield <rmansfield@qnx.com> | 2006-10-01 19:03:24 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2006-10-01 19:03:24 +0000 |
commit | 5f79d6437c58ad4532c8bc1019e2033358b56165 (patch) | |
tree | 7f5fa6e62849ac581926405721e67335862d8a48 | |
parent | 56f61bfff3b306275fde5e3447ddbb9ba6b0bf38 (diff) | |
download | gcc-5f79d6437c58ad4532c8bc1019e2033358b56165.zip gcc-5f79d6437c58ad4532c8bc1019e2033358b56165.tar.gz gcc-5f79d6437c58ad4532c8bc1019e2033358b56165.tar.bz2 |
re PR c/20533 (documentation: attribute 'used', applied to a variable)
2006-10-01 Ryan Mansfield <rmansfield@qnx.com>
PR c/20533
* doc/extend.texi: Add used variable attribute description.
From-SVN: r117349
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e7fc16f..e957ecb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-10-01 Ryan Mansfield <rmansfield@qnx.com> + + PR c/20533 + * doc/extend.texi: Add used variable attribute description. + 2006-09-30 Joseph S. Myers <joseph@codesourcery.com> PR c/24010 diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index fe507f2..1c1ccb1 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -3175,6 +3175,10 @@ This attribute, attached to a variable, means that the variable is meant to be possibly unused. GCC will 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. + @item vector_size (@var{bytes}) This attribute specifies the vector size for the variable, measured in bytes. For example, the declaration: |