diff options
author | YamaArashi <shadow962@live.com> | 2016-01-06 01:48:08 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-01-06 01:48:08 -0800 |
commit | 476b5c86e5bc21311dfb14d0f043fbf5b870781d (patch) | |
tree | c3ed060120f9ed49780bb1c1323d42e47e9f7df7 /gcc/c-parse.in | |
parent | be8b04496302184c6e8f04d6179f9c3afc50aeb6 (diff) |
get it to compile
Diffstat (limited to 'gcc/c-parse.in')
-rwxr-xr-x | gcc/c-parse.in | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in index 9aac256..8e70770 100755 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -1486,38 +1486,38 @@ enum_head: structsp: 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 - { $$ = finish_struct ($<ttype>4, $5, chainon ($1, $7)); } + { $<ttype>$ = finish_struct ($<ttype>4, $5, chainon ($1, $7)); } | struct_head '{' component_decl_list '}' maybe_attribute - { $$ = finish_struct (start_struct (RECORD_TYPE, NULL_TREE), + { $<ttype>$ = finish_struct (start_struct (RECORD_TYPE, NULL_TREE), $3, chainon ($1, $5)); } | struct_head identifier { $$ = xref_tag (RECORD_TYPE, $2); } | union_head identifier '{' - { $$ = start_struct (UNION_TYPE, $2); } + { $<ttype>$ = start_struct (UNION_TYPE, $2); } component_decl_list '}' maybe_attribute - { $$ = finish_struct ($<ttype>4, $5, chainon ($1, $7)); } + { $<ttype>$ = finish_struct ($<ttype>4, $5, chainon ($1, $7)); } | union_head '{' component_decl_list '}' maybe_attribute - { $$ = finish_struct (start_struct (UNION_TYPE, NULL_TREE), + { $<ttype>$ = finish_struct (start_struct (UNION_TYPE, NULL_TREE), $3, chainon ($1, $5)); } | union_head identifier { $$ = xref_tag (UNION_TYPE, $2); } | enum_head identifier '{' { $<itype>3 = suspend_momentary (); - $$ = start_enum ($2); } + $<ttype>$ = start_enum ($2); } enumlist maybecomma_warn '}' maybe_attribute - { $$= finish_enum ($<ttype>4, nreverse ($5), chainon ($1, $8)); + { $<ttype>$= finish_enum ($<ttype>4, nreverse ($5), chainon ($1, $8)); resume_momentary ($<itype>3); } | enum_head '{' { $<itype>2 = suspend_momentary (); - $$ = start_enum (NULL_TREE); } + $<ttype>$ = start_enum (NULL_TREE); } enumlist maybecomma_warn '}' maybe_attribute - { $$= finish_enum ($<ttype>3, nreverse ($4), chainon ($1, $7)); + { $<ttype>$= finish_enum ($<ttype>3, nreverse ($4), chainon ($1, $7)); resume_momentary ($<itype>2); } | enum_head identifier { $$ = xref_tag (ENUMERAL_TYPE, $2); } |