This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] opts.sh & posix


I've installed this patch which gets opts.sh working in the face of
POSIXLY_CORRECT.

We probably should test for the RS="" feature at configure time.

tested on i686-pc-linux-gnu.

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
         The voices in my head said this was stupid too
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>

	* opts.sh (POSIXLY_CORRECT): Unset it.

Index: opts.sh
===================================================================
RCS file: /cvs/gcc/gcc/gcc/opts.sh,v
retrieving revision 1.8
diff -c -3 -p -r1.8 opts.sh
*** opts.sh	14 Jun 2003 15:05:41 -0000	1.8
--- opts.sh	14 Jun 2003 17:38:48 -0000
*************** SORT=sort		# Could be /bin/sort or /usr/
*** 33,38 ****
--- 33,41 ----
  C_FILE=$1; shift
  H_FILE=$1; shift
  
+ # Must unset this, so that the gawk extension RS="" works.
+ unset POSIXLY_CORRECT
+ 
  ${AWK} '
  	BEGIN{ RS=""; FS="\n" }
  	# Ignore comments and blank lines

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]