aboutsummaryrefslogtreecommitdiff
path: root/ld/ldgram.y
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2000-02-29 03:28:57 +0000
committerJim Blandy <jimb@codesourcery.com>2000-02-29 03:28:57 +0000
commit765b7cbe0561bba08a4d4e2467cb6ba266f282f3 (patch)
tree7c79dcc79f7df615195f875e4d54e7bee88a2f9f /ld/ldgram.y
parent06795fb52ded1f26e339da2a59f95048408c5882 (diff)
downloadgdb-765b7cbe0561bba08a4d4e2467cb6ba266f282f3.zip
gdb-765b7cbe0561bba08a4d4e2467cb6ba266f282f3.tar.gz
gdb-765b7cbe0561bba08a4d4e2467cb6ba266f282f3.tar.bz2
* ldgram.y (exclude_name_list): Don't require a comma to separate
list entries; the lexer considers commas to be valid part of a filename, so in something like `foo, bar' the comma is considered part of the first filename, `foo,'. * ld.texinfo: Update section on EXCLUDE_FILE lists.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r--ld/ldgram.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y
index 7189812..806ea1c 100644
--- a/ld/ldgram.y
+++ b/ld/ldgram.y
@@ -420,11 +420,11 @@ wildcard_spec:
exclude_name_list:
- exclude_name_list ',' wildcard_name
+ exclude_name_list wildcard_name
{
struct name_list *tmp;
tmp = (struct name_list *) xmalloc (sizeof *tmp);
- tmp->name = $3;
+ tmp->name = $2;
tmp->next = $1;
$$ = tmp;
}