summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-20 20:07:51 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-20 20:07:51 +0000
commiteef951584692ea226423abb205e934b289e36743 (patch)
tree7d7757e8f3d5a4eeed31542060b6e5ed6679f5d0
parent5b90de76509696c04edd0e0e2a5f6e7bbdbe2b4b (diff)
downloadppe42-gcc-eef951584692ea226423abb205e934b289e36743.tar.gz
ppe42-gcc-eef951584692ea226423abb205e934b289e36743.zip
* opts.sh: Tweak awk script for portability.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68282 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/opts.sh8
2 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3f405374aca..7625baeb798 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2003-06-20 Kelley Cook <kelleycook@wideopenwest.com>
+
+ * opts.sh: Tweak awk script for portability.
+
2003-06-20 Mark Mitchell <mark@codesourcery.com>
PR c++/10888
diff --git a/gcc/opts.sh b/gcc/opts.sh
index bbca27265c7..385ef34414e 100644
--- a/gcc/opts.sh
+++ b/gcc/opts.sh
@@ -33,15 +33,11 @@ SORT=sort # Could be /bin/sort or /usr/bin/sort
C_FILE=$1; shift
H_FILE=$1; shift
-# Must unset, so that RS="" works in gawk 3.0-3.1.1 (possibly earlier too)
-# Appears to be a gawk bug, RS="" is not an extension
-unset POSIXLY_CORRECT
-
${AWK} '
- BEGIN{ RS=""; FS="\n" }
# Ignore comments and blank lines
/^[ \t]*(;|$)/ { next }
- /^[^ \t]/ { gsub ("\n", "\034", $0); print }
+ # Note that RS="" falls foul of gawk 3.1.2 bugs
+ /^[^ \t]/ { getline tmp; print $0 "\034" tmp}
' "$@" | ${SORT} | ${AWK} '
function switch_flags (flags, result)
{
OpenPOWER on IntegriCloud