diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-03-31 12:26:06 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-03-31 12:26:06 +0000 |
commit | 1136385eb0af28afa757ebb94475f2f07d29c4eb (patch) | |
tree | 658e058db0f8009395ab900904c6320f9dc7286e /gcc/c-parse.in | |
parent | 5233d224cfbb5e37f6884facf4e52bfcf7ec6fda (diff) | |
download | gcc-1136385eb0af28afa757ebb94475f2f07d29c4eb.tar.gz |
(structsp): Correct error in last change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9270 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r-- | gcc/c-parse.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in index a2a23da9b10..0f8cda161e4 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -1325,11 +1325,13 @@ structsp: { $$ = start_struct (UNION_TYPE, $2); } component_decl_list '}' maybe_attribute { $$ = finish_struct ($<ttype>4, $5); - decl_attributes ($$, $5, NULL_TREE); + decl_attributes ($$, $7, NULL_TREE); } - | UNION '{' component_decl_list '}' + | UNION '{' component_decl_list '}' maybe_attribute { $$ = finish_struct (start_struct (UNION_TYPE, NULL_TREE), - $3); } + $3); + decl_attributes ($$, $5, NULL_TREE); + } | UNION identifier { $$ = xref_tag (UNION_TYPE, $2); } | ENUM identifier '{' |