GCC with patches for OS216
Révision | a2df430c5ac46e674fd6a8f20683089a7f4c93a0 (tree) |
---|---|
l'heure | 2009-11-03 07:14:49 |
Auteur | Jason Merrill <jason@redh...> |
Commiter | Jason Merrill |
* c-parse.in (structsp_attr): Fix for bison 2.4.1 pedantry.
From-SVN: r153828
@@ -1,3 +1,7 @@ | ||
1 | +2009-11-02 Jason Merrill <jason@redhat.com> | |
2 | + | |
3 | + * c-parse.in (structsp_attr): Fix for bison 2.4.1 pedantry. | |
4 | + | |
1 | 5 | 2006-04-25 Nick Clifton <nickc@redhat.com> |
2 | 6 | |
3 | 7 | * config/m32r/m32r.c (gen_compare): Fix reg/smallconst equal code, |
@@ -1730,7 +1730,7 @@ enum_head: | ||
1730 | 1730 | |
1731 | 1731 | structsp_attr: |
1732 | 1732 | struct_head identifier '{' |
1733 | - { $$ = start_struct (RECORD_TYPE, $2); | |
1733 | + { $<ttype>$ = start_struct (RECORD_TYPE, $2); | |
1734 | 1734 | /* Start scope of tag before parsing components. */ |
1735 | 1735 | } |
1736 | 1736 | component_decl_list '}' maybe_attribute |
@@ -1741,7 +1741,7 @@ structsp_attr: | ||
1741 | 1741 | nreverse ($3), chainon ($1, $5)); |
1742 | 1742 | } |
1743 | 1743 | | union_head identifier '{' |
1744 | - { $$ = start_struct (UNION_TYPE, $2); } | |
1744 | + { $<ttype>$ = start_struct (UNION_TYPE, $2); } | |
1745 | 1745 | component_decl_list '}' maybe_attribute |
1746 | 1746 | { $$ = finish_struct ($<ttype>4, nreverse ($5), |
1747 | 1747 | chainon ($1, $7)); } |
@@ -1750,12 +1750,12 @@ structsp_attr: | ||
1750 | 1750 | nreverse ($3), chainon ($1, $5)); |
1751 | 1751 | } |
1752 | 1752 | | enum_head identifier '{' |
1753 | - { $$ = start_enum ($2); } | |
1753 | + { $<ttype>$ = start_enum ($2); } | |
1754 | 1754 | enumlist maybecomma_warn '}' maybe_attribute |
1755 | 1755 | { $$ = finish_enum ($<ttype>4, nreverse ($5), |
1756 | 1756 | chainon ($1, $8)); } |
1757 | 1757 | | enum_head '{' |
1758 | - { $$ = start_enum (NULL_TREE); } | |
1758 | + { $<ttype>$ = start_enum (NULL_TREE); } | |
1759 | 1759 | enumlist maybecomma_warn '}' maybe_attribute |
1760 | 1760 | { $$ = finish_enum ($<ttype>3, nreverse ($4), |
1761 | 1761 | chainon ($1, $7)); } |