Ticket #28296: c-parse.in.patch
File c-parse.in.patch, 1.2 KB (added by mswoj61@…, 14 years ago) |
---|
-
c-parse.in
old new 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 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 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)); }