[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[openrisc] [PATCH] binutils build with bison 1.50



Hi,

Bison 1.50 seems to do extra checks which break the or1k binutils build.
Attached you will find a patch which fixes this problem.

Cheers,

p2.
diff -urN or1k/binutils/binutils/arparse.y or1k.clean/binutils/binutils/arparse.y
--- or1k/binutils/binutils/arparse.y	2002-02-11 12:22:59.000000000 +0100
+++ or1k.clean/binutils/binutils/arparse.y	2002-10-17 00:42:45.000000000 +0200
@@ -74,6 +74,7 @@
 
 command_line:
 		command NEWLINE { prompt(); }
+		;
 
 command:
 		open_command	
diff -urN or1k/binutils/ld/ldgram.y or1k.clean/binutils/ld/ldgram.y
--- or1k/binutils/ld/ldgram.y	2002-02-11 12:23:46.000000000 +0100
+++ or1k.clean/binutils/ld/ldgram.y	2002-10-17 11:34:41.000000000 +0200
@@ -170,6 +170,7 @@
 		  ldlex_popstate();
 		  lang_add_assignment(exp_assop($3,$2,$4));
 		}
+		;
 
 /* SYNTAX WITHIN AN MRI SCRIPT FILE */  
 mri_script_file:
@@ -620,11 +621,11 @@
 	;
 
 
-memory_spec: 		NAME
+memory_spec: 		NAME 
 			{ region = lang_memory_region_lookup($1); }
 		attributes_opt ':'
 		origin_spec opt_comma length_spec
-
+		{}
 	;
 
 origin_spec:
@@ -835,6 +836,7 @@
 		  lang_leave_output_section_statement ($14, $11, $13, $12);
 		}
 		opt_comma
+		{}
 	|	OVERLAY
 			{ ldlex_expression (); }
 		opt_exp_without_type opt_nocrossrefs opt_at