This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bison 1.50 vs binutils


On Wed, Oct 09, 2002 at 09:55:56PM -0400, Jack Howarth wrote:
> ld/ldgram.y:629.12-632.35: type clash (`' `name') on default action
> ld/ldgram.y:831.8-847.11: type clash (`' `name') on default action

Fixed like this.

	* ldgram.y (memory_spec): Provide empty action.
	(section <NAME>): Likewise.

Applying mainline and branch.

Index: ld/ldgram.y
===================================================================
RCS file: /cvs/src/src/ld/ldgram.y,v
retrieving revision 1.21
diff -u -p -r1.21 ldgram.y
--- ld/ldgram.y	7 May 2002 11:04:54 -0000	1.21
+++ ld/ldgram.y	11 Oct 2002 07:24:19 -0000
@@ -626,11 +626,11 @@ memory_spec_list:
 	;
 
 
-memory_spec: 		NAME
-			{ region = lang_memory_region_lookup($1); }
+memory_spec: 	NAME
+		{ region = lang_memory_region_lookup($1); }
 		attributes_opt ':'
 		origin_spec opt_comma length_spec
-
+		{}
 	;
 
 origin_spec:
@@ -845,6 +845,7 @@ section:	NAME 		{ ldlex_expression(); }
 		  lang_leave_output_section_statement ($14, $11, $13, $12);
 		}
 		opt_comma
+		{}
 	|	OVERLAY
 			{ ldlex_expression (); }
 		opt_exp_without_type opt_nocrossrefs opt_at

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]