aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-08-16 16:26:57 +0000
committerIan Lance Taylor <ian@airs.com>1995-08-16 16:26:57 +0000
commit9b2221905454ee28dec5ba7b3e1fef762f05f131 (patch)
treeabe3be31ecf3c1e576a436b9ff8ecb9b02ce0ee8 /ld
parent80fd1f4584013dfa2431a443a93de5afe95668be (diff)
downloadgdb-9b2221905454ee28dec5ba7b3e1fef762f05f131.zip
gdb-9b2221905454ee28dec5ba7b3e1fef762f05f131.tar.gz
gdb-9b2221905454ee28dec5ba7b3e1fef762f05f131.tar.bz2
* ldgram.y: Tweak casesymlist to avoid bison errors.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog2
-rw-r--r--ld/ldgram.y4
2 files changed, 4 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 7404098..89bd055 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,7 @@
Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
+ * ldgram.y: Tweak casesymlist to avoid bison errors.
+
* lexsup.c (parse_args): Accept -h as a synonym for --soname, for
Solaris compatibility.
diff --git a/ld/ldgram.y b/ld/ldgram.y
index 4967145..7e6f1e8 100644
--- a/ld/ldgram.y
+++ b/ld/ldgram.y
@@ -72,7 +72,7 @@ static int error_index;
%type <etree> exp opt_exp_with_type mustbe_exp opt_at
%type <integer> fill_opt
-%type <name> memspec_opt
+%type <name> memspec_opt casesymlist
%token <integer> INT
%token <name> NAME LNAME
%type <integer> length
@@ -220,7 +220,7 @@ mri_abs_name_list:
;
casesymlist:
- /* empty */
+ /* empty */ { $$ = NULL; }
| NAME
| casesymlist ',' NAME
;