This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] opts.sh & posix
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Neil Booth <neil at daikokuya dot co dot uk>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 14 Jun 2003 18:41:27 +0100
- Subject: [PATCH] opts.sh & posix
- Organization: Codesourcery LLC
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