components/gcc3/patches/c-parse.in.patch
author Petr Nyc <Petr.Nyc@Oracle.COM>
Thu, 11 Jun 2015 06:36:56 -0700
branchs11u2-sru
changeset 4466 a276a7815539
parent 246 0878f7720e3e
child 4635 a9a24ad5e78c
permissions -rw-r--r--
Added tag 0.175.2.12.0.2.0, S11.2SRU12.2 for changeset 48cb092e9916

--- gcc-3.4.3/gcc/c-parse.in.orig	Tue Feb 16 13:13:29 2010
+++ gcc-3.4.3/gcc/c-parse.in	Tue Feb 16 13:17:36 2010
@@ -1730,7 +1730,7 @@
 
 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 @@
 				      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 @@
 				      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)); }