21436838 gcc3 and bison3 don't get along
authorMike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 13 Jul 2015 10:37:39 -0700
changeset 4635 a9a24ad5e78c
parent 4634 a4940ac4947c
child 4638 0be76b6a106a
21436838 gcc3 and bison3 don't get along
components/gcc3/patches/c-parse.in.patch
--- a/components/gcc3/patches/c-parse.in.patch	Sun Jul 12 15:01:25 2015 -0700
+++ b/components/gcc3/patches/c-parse.in.patch	Mon Jul 13 10:37:39 2015 -0700
@@ -33,3 +33,23 @@
  	  enumlist maybecomma_warn '}' maybe_attribute
  		{ $$ = finish_enum ($<ttype>3, nreverse ($4),
  				    chainon ($1, $7)); }
+--- gcc-3.4.3/gcc/c-parse.in.orig	Sun Dec 15 10:24:57 2013
++++ gcc-3.4.3/gcc/c-parse.in	Sun Dec 15 10:28:18 2013
[email protected]@ -635,7 +635,7 @@
+ 	IDENTIFIER
+ 		{
+ 		  if (yychar == YYEMPTY)
+-		    yychar = YYLEX;
++		    yychar = yylex();
+ 		  $$ = build_external_ref ($1, yychar == '(');
+ 		}
+ 	| CONSTANT
[email protected]@ -2227,7 +2227,7 @@
+ 
+ save_location:
+ 		{ if (yychar == YYEMPTY)
+-		    yychar = YYLEX;
++		    yychar = yylex();
+ 		  $$ = input_location; }
+ 	;
+