]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* c-parse.in (structsp_attr): Fix for bison 2.4.1 pedantry. releases/gcc-3.4
authorJason Merrill <jason@redhat.com>
Mon, 2 Nov 2009 22:14:49 +0000 (17:14 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 2 Nov 2009 22:14:49 +0000 (17:14 -0500)
From-SVN: r153828

gcc/ChangeLog
gcc/c-parse.in

index d17872fec44b02969af20654b86391d169c97874..a899efb1ec77c24f1102304dad767465c7533941 100644 (file)
@@ -1,3 +1,7 @@
+2009-11-02  Jason Merrill  <jason@redhat.com>
+
+       * c-parse.in (structsp_attr): Fix for bison 2.4.1 pedantry.
+
 2006-04-25  Nick Clifton  <nickc@redhat.com>
 
        * config/m32r/m32r.c (gen_compare): Fix reg/smallconst equal code,
index 66d27ac0322f335aed8a3302522bcf19ffc9d1bf..35bc3f8c1dd6c5ee2318c288ae10854ba0250ab8 100644 (file)
@@ -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)); }