parse.y: New rules to allow attributes in a prefix position.
authorBrendan Kehoe <brendan@lisa.cygnus.com>
Mon, 13 Mar 1995 02:04:52 +0000 (02:04 +0000)
committerBrendan Kehoe <brendan@gcc.gnu.org>
Mon, 13 Mar 1995 02:04:52 +0000 (21:04 -0500)
commitf6abb50a8a53adba2fdfdee15069890868f0d443
treec2a260465fa275684474039646345364e0fad98e
parentbf6ed0403197c55ff8176894d0a215b32ef15bc5
parse.y: New rules to allow attributes in a prefix position.

        * parse.y: New rules to allow attributes in a prefix position.
        (prefix_attributes): New variable.  Pass it into cplus_decl_attributes.
        (setattr): New rule.
        (reserved_declspecs, declmods): Catch attributes here.
        * decl2.c (cplus_decl_attributes): Add PREFIX_ATTRIBUTES argument.
        * decl.c (duplicate_decls): Pass DECL_MACHINE_ATTRIBUTES to
        descendent typedef.
        (grokdeclarator): Added code to support machine attributes.
        * Makefile.in (stamp-parse): Expect 5 shift/reduce failures.

From-SVN: r9172
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/parse.y