public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/20533] New: documentation: attribute 'used', applied to a variable
@ 2005-03-18 15:58 gary at intrepid dot com
  2005-03-18 16:41 ` [Bug c/20533] " pinskia at gcc dot gnu dot org
  2005-03-26 18:34 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: gary at intrepid dot com @ 2005-03-18 15:58 UTC (permalink / raw)
  To: gcc-bugs

See related discussion in Bug #20319, and at
http://gcc.gnu.org/ml/gcc/2005-03/msg00450.html

The "used" attribute is described only under "function attributes"
and not under "variable attributes" in the documentation:

used
This attribute, attached to a function, means that code must be emitted for 
the function even if it appears that the function is not referenced. This is 
useful, for example, when the function is referenced only in inline assembly. 

(see: http://gcc.gnu.org/onlinedocs/gcc-3.4.3/gcc/Function-
Attributes.html#Function-Attributes)

It would be helpful if the documentation were updated to describe the
behavior of the `used' attribute when apllied to variables.

-- 
           Summary: documentation: attribute 'used', applied to a variable
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gary at intrepid dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20533


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/20533] documentation: attribute 'used', applied to a variable
  2005-03-18 15:58 [Bug c/20533] New: documentation: attribute 'used', applied to a variable gary at intrepid dot com
@ 2005-03-18 16:41 ` pinskia at gcc dot gnu dot org
  2005-03-26 18:34 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-18 16:41 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |documentation


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20533


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/20533] documentation: attribute 'used', applied to a variable
  2005-03-18 15:58 [Bug c/20533] New: documentation: attribute 'used', applied to a variable gary at intrepid dot com
  2005-03-18 16:41 ` [Bug c/20533] " pinskia at gcc dot gnu dot org
@ 2005-03-26 18:34 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-26 18:34 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-03-26 18:34:14
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20533


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-26 18:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-18 15:58 [Bug c/20533] New: documentation: attribute 'used', applied to a variable gary at intrepid dot com
2005-03-18 16:41 ` [Bug c/20533] " pinskia at gcc dot gnu dot org
2005-03-26 18:34 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).