diff options
author | Jason Merrill <jason@redhat.com> | 2009-11-02 17:14:49 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2009-11-02 17:14:49 -0500 |
commit | a2df430c5ac46e674fd6a8f20683089a7f4c93a0 (patch) | |
tree | d95439c108c05d57da80511d7e508722567e75e0 /gcc/c-parse.in | |
parent | 5789bd0667a17fdb2c28257809b2897ef0e676cd (diff) | |
download | gcc-releases/gcc-3.4.tar.gz |
* c-parse.in (structsp_attr): Fix for bison 2.4.1 pedantry.releases/gcc-3.4
From-SVN: r153828
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r-- | gcc/c-parse.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in index 66d27ac0322..35bc3f8c1dd 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -1730,7 +1730,7 @@ enum_head: structsp_attr: struct_head identifier '{' - { $$ = start_struct (RECORD_TYPE, $2); + { $<ttype>$ = start_struct (RECORD_TYPE, $2); /* Start scope of tag before parsing components. */ } component_decl_list '}' maybe_attribute @@ -1741,7 +1741,7 @@ structsp_attr: nreverse ($3), chainon ($1, $5)); } | union_head identifier '{' - { $$ = start_struct (UNION_TYPE, $2); } + { $<ttype>$ = start_struct (UNION_TYPE, $2); } component_decl_list '}' maybe_attribute { $$ = finish_struct ($<ttype>4, nreverse ($5), chainon ($1, $7)); } @@ -1750,12 +1750,12 @@ structsp_attr: nreverse ($3), chainon ($1, $5)); } | enum_head identifier '{' - { $$ = start_enum ($2); } + { $<ttype>$ = start_enum ($2); } enumlist maybecomma_warn '}' maybe_attribute { $$ = finish_enum ($<ttype>4, nreverse ($5), chainon ($1, $8)); } | enum_head '{' - { $$ = start_enum (NULL_TREE); } + { $<ttype>$ = start_enum (NULL_TREE); } enumlist maybecomma_warn '}' maybe_attribute { $$ = finish_enum ($<ttype>3, nreverse ($4), chainon ($1, $7)); } |