This is the mail archive of the binutils@sourceware.cygnus.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]

RFA: Don't require commas in EXCLUDE_FILE name lists



May I commit this?

2000-02-28  Jim Blandy  <jimb@redhat.com>

	* 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: Doc fix.

Index: ld/ldgram.y
===================================================================
RCS file: /cvs/src/src/ld/ldgram.y,v
retrieving revision 1.4
diff -c -r1.4 ldgram.y
*** ld/ldgram.y	2000/02/16 18:53:31	1.4
--- ld/ldgram.y	2000/02/28 23:34:28
***************
*** 420,430 ****
  
  
  exclude_name_list:
! 		exclude_name_list ',' wildcard_name
  			{
  			  struct name_list *tmp;
  			  tmp = (struct name_list *) xmalloc (sizeof *tmp);
! 			  tmp->name = $3;
  			  tmp->next = $1;
  			  $$ = tmp;	
  			}
--- 420,430 ----
  
  
  exclude_name_list:
! 		exclude_name_list wildcard_name
  			{
  			  struct name_list *tmp;
  			  tmp = (struct name_list *) xmalloc (sizeof *tmp);
! 			  tmp->name = $2;
  			  tmp->next = $1;
  			  $$ = tmp;	
  			}
Index: ld/ld.texinfo
===================================================================
RCS file: /cvs/src/src/ld/ld.texinfo,v
retrieving revision 1.11
diff -c -r1.11 ld.texinfo
*** ld/ld.texinfo	2000/02/16 18:53:31	1.11
--- ld/ld.texinfo	2000/02/28 23:34:27
***************
*** 2255,2264 ****
  match all files except the ones specified in the EXCLUDE_FILE list.  For
  example:
  @smallexample
! (*(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.
  
  There are two ways to include more than one section:
  @smallexample
--- 2255,2264 ----
  match all files except the ones specified in the EXCLUDE_FILE list.  For
  example:
  @smallexample
! (*(EXCLUDE_FILE (*crtend.o *otherfile.o) .ctors))
  @end smallexample
! 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]