File gcc33-bison-yylex-error.patch of Package gcc33

Index: gcc-3.3.3/gcc/c-parse.in
===================================================================
--- gcc-3.3.3.orig/gcc/c-parse.in	2019-05-27 19:50:05.000000000 +0200
+++ gcc-3.3.3/gcc/c-parse.in	2019-05-27 19:50:43.000000000 +0200
@@ -652,7 +652,7 @@ primary:
 	IDENTIFIER
 		{
 		  if (yychar == YYEMPTY)
-		    yychar = YYLEX;
+		    yychar = yylex ();
 		  $$ = build_external_ref ($1, yychar == '(');
 		}
 	| CONSTANT
@@ -2240,13 +2240,13 @@ do_stmt_start:
    first token on the next line.  */
 save_filename:
 		{ if (yychar == YYEMPTY)
-		    yychar = YYLEX;
+		    yychar = yylex ();
 		  $$ = input_filename; }
 	;
 
 save_lineno:
 		{ if (yychar == YYEMPTY)
-		    yychar = YYLEX;
+		    yychar = yylex ();
 		  $$ = lineno; }
 	;
 
Index: gcc-3.3.3/gcc/c-parse.y
===================================================================
--- gcc-3.3.3.orig/gcc/c-parse.y	2019-05-27 19:23:44.000000000 +0200
+++ gcc-3.3.3/gcc/c-parse.y	2019-05-27 19:50:43.000000000 +0200
@@ -611,7 +611,7 @@ primary:
 	IDENTIFIER
 		{
 		  if (yychar == YYEMPTY)
-		    yychar = YYLEX;
+		    yychar = yylex ();
 		  $$ = build_external_ref ($1, yychar == '(');
 		}
 	| CONSTANT
@@ -2126,13 +2126,13 @@ do_stmt_start:
    first token on the next line.  */
 save_filename:
 		{ if (yychar == YYEMPTY)
-		    yychar = YYLEX;
+		    yychar = yylex ();
 		  $$ = input_filename; }
 	;
 
 save_lineno:
 		{ if (yychar == YYEMPTY)
-		    yychar = YYLEX;
+		    yychar = yylex ();
 		  $$ = lineno; }
 	;
 
Index: gcc-3.3.3/gcc/cp/parse.y
===================================================================
--- gcc-3.3.3.orig/gcc/cp/parse.y	2019-05-27 19:50:05.000000000 +0200
+++ gcc-3.3.3/gcc/cp/parse.y	2019-05-27 19:50:43.000000000 +0200
@@ -901,7 +901,7 @@ fn_def2:
 		  if (! $$)
 		    YYERROR1;
 		  if (yychar == YYEMPTY)
-		    yychar = YYLEX;
+		    yychar = yylex ();
 		  snarf_method ($$); }
 	| component_constructor_declarator
 		{ $$ = parse_method ($1, NULL_TREE, NULL_TREE);
@@ -1102,7 +1102,7 @@ self_template_type:
 finish_template_type_:
                 {
 		  if (yychar == YYEMPTY)
-		    yychar = YYLEX;
+		    yychar = yylex ();
 
 		  $$ = finish_template_type ($<ttype>-3, $<ttype>-1,
 					     yychar == SCOPE);
@@ -1333,11 +1333,11 @@ unary_expr:
 	| delete '[' ']' cast_expr  %prec UNARY
 		{ $$ = delete_sanity ($4, NULL_TREE, 1, $1);
 		  if (yychar == YYEMPTY)
-		    yychar = YYLEX; }
+		    yychar = yylex (); }
 	| delete '[' expr ']' cast_expr  %prec UNARY
 		{ $$ = delete_sanity ($5, $3, 2, $1);
 		  if (yychar == YYEMPTY)
-		    yychar = YYLEX; }
+		    yychar = yylex (); }
 	| REALPART cast_expr %prec UNARY
 		{ $$ = build_x_unary_op (REALPART_EXPR, $2); }
 	| IMAGPART cast_expr %prec UNARY
@@ -2369,7 +2369,7 @@ structsp:
 		  tree t;
 
 		  if (yychar == YYEMPTY)
-		    yychar = YYLEX;
+		    yychar = yylex ();
 		  semi = yychar == ';';
 
 		  t = finish_class_definition ($1.t, $7, semi, $1.new_type_flag);
@@ -4015,7 +4015,7 @@ operator_name:
    on the next line.  */
 save_lineno:
 		{ if (yychar == YYEMPTY)
-		    yychar = YYLEX;
+		    yychar = yylex ();
 		  $$ = lineno; }
 	;
 %%
openSUSE Build Service is sponsored by