c-common.c (decl_attributes): Allow applying attribute `unused' on a LABEL_DECL.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 4 Jan 1999 07:48:37 +0000 (07:48 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 4 Jan 1999 07:48:37 +0000 (07:48 +0000)
commit736b02fdfa3d7c93a3693e2fa41acf6d3d65df8c
treee6dcbf0a389b511b9751f2e3fbcbf9af76269446
parentfbc7f4a22d02ba59c589d13a50a7866d333e5e22
c-common.c (decl_attributes): Allow applying attribute `unused' on a LABEL_DECL.

        * c-common.c (decl_attributes): Allow applying attribute `unused'
        on a LABEL_DECL.
        * c-parse.in (label): Parse attributes after a label, and call
        `decl_attributes' to handle them.
        * gansidecl.h (ATTRIBUTE_UNUSED_LABEL): Define.
        * genrecog.c (OUTPUT_LABEL, write_tree_1, write_tree): When
        generating labels, mark them with ATTRIBUTE_UNUSED_LABEL.
        * invoke.texi: Note that labels can be marked `unused'.

From-SVN: r24478
gcc/ChangeLog
gcc/c-common.c
gcc/c-parse.c
gcc/c-parse.in
gcc/c-parse.y
gcc/gansidecl.h
gcc/genrecog.c
gcc/invoke.texi
gcc/objc/objc-parse.c
gcc/objc/objc-parse.y