This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH PR 20533 (doc for used attribute)
- From: ltg at zes dot uni-bremen dot de
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 23 Mar 2005 00:58:42 +0100 (CET)
- Subject: PATCH PR 20533 (doc for used attribute)
- Reply-to: ltg at zes dot uni-bremen dot de
2005-03-23 Lothar Guthmann <ltg@zes.uni-bremen.de>
PR c/20533
* extend.texi (used attribute): adds used attribute to variable
attributes.
Hi,
this patch adds the "used" attribute to the documentation
for variable attributes.
*** extend.texi.orig 2004-08-23 20:02:58.000000000 +0200
--- extend.texi 2005-03-18 21:15:59.000000000 +0100
*************** This attribute, attached to a variable,
*** 3348,3353 ****
--- 3348,3359 ----
to be possibly unused. GCC will not produce a warning for this
variable.
+ @item used
+ This attribute, attached to a variable, means that code must be emitted
+ for the variable even if it appears that the variable is not referenced.
+ This is useful, for example, when the variable is referenced only in
+ inline assembly.
+
@item vector_size (@var{bytes})
This attribute specifies the vector size for the variable, measured in
bytes. For example, the declaration: