PATCH PR 20533 (doc for used attribute)

ltg@zes.uni-bremen.de ltg@zes.uni-bremen.de
Wed Mar 23 00:18:00 GMT 2005


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:



More information about the Gcc-patches mailing list