* ldgram.y (exclude_name_list): Don't require a comma to separate
authorJim Blandy <jimb@codesourcery.com>
Tue, 29 Feb 2000 03:28:57 +0000 (03:28 +0000)
committerJim Blandy <jimb@codesourcery.com>
Tue, 29 Feb 2000 03:28:57 +0000 (03:28 +0000)
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.

ld/ld.texinfo
ld/ldgram.y

index 8ecdef2ba04daefa1fa45ca3d9a0d7f49e463f7f..6662ca3ac6ecbf33f4d3e6c0ecbae71ecd80d60a 100644 (file)
@@ -2255,10 +2255,10 @@ of files from matching the file name wildcard, EXCLUDE_FILE may be used to
 match all files except the ones specified in the EXCLUDE_FILE list.  For
 example:
 @smallexample
-(*(EXCLUDE_FILE (*crtend.o, *otherfile.o) .ctors))
+(*(EXCLUDE_FILE (*crtend.o *otherfile.o) .ctors))
 @end smallexample
-will cause all .ctors sections from all files except crtend.o and otherfile.o
-to be included.
+will cause all .ctors sections from all files except @file{crtend.o} and
+@file{otherfile.o} to be included.
 
 There are two ways to include more than one section:
 @smallexample
index 718981281576188e9ca4d6d0ec1e99df39c901cf..806ea1c5f5c35e45938538515f17e9e717d9f2ce 100644 (file)
@@ -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;     
                        }