Ticket #28296: c-parse.in.patch

File c-parse.in.patch, 1.2 KB (added by mswoj61@…, 13 years ago)
  • c-parse.in

    old new  
    17301730
    17311731structsp_attr:
    17321732          struct_head identifier '{'
    1733                 { $$ = start_struct (RECORD_TYPE, $2);
     1733                { $<ttype>$ = start_struct (RECORD_TYPE, $2);
    17341734                  /* Start scope of tag before parsing components.  */
    17351735                }
    17361736          component_decl_list '}' maybe_attribute
     
    17411741                                      nreverse ($3), chainon ($1, $5));
    17421742                }
    17431743        | union_head identifier '{'
    1744                 { $$ = start_struct (UNION_TYPE, $2); }
     1744                { $<ttype>$ = start_struct (UNION_TYPE, $2); }
    17451745          component_decl_list '}' maybe_attribute
    17461746                { $$ = finish_struct ($<ttype>4, nreverse ($5),
    17471747                                      chainon ($1, $7)); }
     
    17501750                                      nreverse ($3), chainon ($1, $5));
    17511751                }
    17521752        | enum_head identifier '{'
    1753                 { $$ = start_enum ($2); }
     1753                { $<ttype>$ = start_enum ($2); }
    17541754          enumlist maybecomma_warn '}' maybe_attribute
    17551755                { $$ = finish_enum ($<ttype>4, nreverse ($5),
    17561756                                    chainon ($1, $8)); }
    17571757        | enum_head '{'
    1758                 { $$ = start_enum (NULL_TREE); }
     1758                { $<ttype>$ = start_enum (NULL_TREE); }
    17591759          enumlist maybecomma_warn '}' maybe_attribute
    17601760                { $$ = finish_enum ($<ttype>3, nreverse ($4),
    17611761                                    chainon ($1, $7)); }