This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Remove duplications in ldgram.y
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Fri, 19 Jan 2007 10:00:55 -0800
- Subject: PATCH: Remove duplications in ldgram.y
I got
/export/gnu/src/binutils-import/binutils/ld/ldgram.y:134.8-21: warning:
symbol SIZEOF_HEADERS redeclared
/export/gnu/src/binutils-import/binutils/ld/ldgram.y:139.8-11: warning:
symbol NAME redeclared
/export/gnu/src/binutils-import/binutils/ld/ldgram.y:139.13-17:
warning: symbol LNAME redeclared
/export/gnu/src/binutils-import/binutils/ld/ldgram.y:149.22-30:
warning: symbol DEFSYMEND redeclared
This patch fixes them.
H.J.
---
2007-01-19 H.J. Lu <hongjiu.lu@intel.com>
* ldgram.y (SIZEOF_HEADERS): Remove duplicated one.
(DEFSYMEND): Likewise.
(NAME): Likewise.
(LNAME): Likewise.
--- ld/ldgram.y.dup 2006-09-07 10:16:34.000000000 -0700
+++ ld/ldgram.y 2007-01-19 09:52:45.000000000 -0800
@@ -131,12 +131,11 @@ static int error_index;
%token '{' '}'
%token SIZEOF_HEADERS OUTPUT_FORMAT FORCE_COMMON_ALLOCATION OUTPUT_ARCH
%token INHIBIT_COMMON_ALLOCATION
-%token SIZEOF_HEADERS
%token SEGMENT_START
%token INCLUDE
-%token MEMORY DEFSYMEND
+%token MEMORY
%token NOLOAD DSECT COPY INFO OVERLAY
-%token NAME LNAME DEFINED TARGET_K SEARCH_DIR MAP ENTRY
+%token DEFINED TARGET_K SEARCH_DIR MAP ENTRY
%token <integer> NEXT
%token SIZEOF ADDR LOADADDR MAX_K MIN_K
%token STARTUP HLL SYSLIB FLOAT NOFLOAT NOCROSSREFS