From 5f79d6437c58ad4532c8bc1019e2033358b56165 Mon Sep 17 00:00:00 2001 From: Ryan Mansfield Date: Sun, 1 Oct 2006 19:03:24 +0000 Subject: [PATCH] re PR c/20533 (documentation: attribute 'used', applied to a variable) 2006-10-01 Ryan Mansfield PR c/20533 * doc/extend.texi: Add used variable attribute description. From-SVN: r117349 --- gcc/ChangeLog | 5 +++++ gcc/doc/extend.texi | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e7fc16ffab96..e957ecb4f9e8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-10-01 Ryan Mansfield + + PR c/20533 + * doc/extend.texi: Add used variable attribute description. + 2006-09-30 Joseph S. Myers PR c/24010 diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index fe507f2975ea..1c1ccb150325 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: