public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* options.h build fails with mawk
@ 2003-06-15 17:40 Richard Henderson
  2003-06-15 19:23 ` Neil Booth
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Henderson @ 2003-06-15 17:40 UTC (permalink / raw)
  To: neil, gcc-bugs

... bug succeeds with gawk.

||/ Name           Version        Description
+++-==============-==============-============================================
ii  mawk           1.3.3-11       a pattern scanning and text processing langu
ii  gawk           3.1.2-2        GNU awk, a pattern scanning and processing l


r~


[kanga:~/work/gcc/build/axp/gcc] make options.h
AWK=gawk /bin/sh ../../../src-gcc/gcc/opts.sh options.c options.h \
        ../../../src-gcc/gcc/f/lang.opt ../../../src-gcc/gcc/java/lang.opt ../../../src-gcc/gcc/c.opt ../../../src-gcc/gcc/common.opt

[kanga:~/work/gcc/build/axp/gcc] make AWK=mawk options.h
AWK=mawk /bin/sh ../../../src-gcc/gcc/opts.sh options.c options.h \
        ../../../src-gcc/gcc/f/lang.opt ../../../src-gcc/gcc/java/lang.opt ../../../src-gcc/gcc/c.opt ../../../src-gcc/gcc/common.opt
mawk: line 8: regular expression compile failed (missing operand)
+
make: *** [options.h] Error 2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: options.h build fails with mawk
  2003-06-15 17:40 options.h build fails with mawk Richard Henderson
@ 2003-06-15 19:23 ` Neil Booth
  2003-06-15 19:35   ` Neil Booth
  0 siblings, 1 reply; 3+ messages in thread
From: Neil Booth @ 2003-06-15 19:23 UTC (permalink / raw)
  To: Richard Henderson; +Cc: gcc-bugs, gcc-patches

Richard Henderson wrote:-

> ... bug succeeds with gawk.
> 
> ||/ Name           Version        Description
> +++-==============-==============-============================================
> ii  mawk           1.3.3-11       a pattern scanning and text processing langu
> ii  gawk           3.1.2-2        GNU awk, a pattern scanning and processing l

Sigh.  Awk appears to be a portability cesspit, though it's still easier
than writing the script in C.

Neil.

	* opts.sh: Quote '+' in regex.

Index: opts.sh
===================================================================
RCS file: /cvs/gcc/gcc/gcc/opts.sh,v
retrieving revision 1.12
diff -u -p -b -r1.12 opts.sh
--- opts.sh	15 Jun 2003 15:28:24 -0000	1.12
+++ opts.sh	15 Jun 2003 19:20:29 -0000
@@ -49,7 +49,7 @@ ${AWK} '
 	result = "0"
 	for (j = 0; j < n_langs; j++) {
 	    regex = " " langs[j] " "
-	    gsub ( "+", "\\+", regex )
+	    gsub ( "\+", "\\+", regex )
 	    if (flags ~ regex)
 		result = result " | " macros[j]
 	}


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: options.h build fails with mawk
  2003-06-15 19:23 ` Neil Booth
@ 2003-06-15 19:35   ` Neil Booth
  0 siblings, 0 replies; 3+ messages in thread
From: Neil Booth @ 2003-06-15 19:35 UTC (permalink / raw)
  To: Richard Henderson; +Cc: gcc-bugs, gcc-patches

Neil Booth wrote:-

> Richard Henderson wrote:-
> 
> > ... bug succeeds with gawk.
> > 
> > ||/ Name           Version        Description
> > +++-==============-==============-============================================
> > ii  mawk           1.3.3-11       a pattern scanning and text processing langu
> > ii  gawk           3.1.2-2        GNU awk, a pattern scanning and processing l
> 
> Sigh.  Awk appears to be a portability cesspit, though it's still easier
> than writing the script in C.
> 
> Neil.
> 
> 	* opts.sh: Quote '+' in regex.

LOL.  mawk and gawk are now OK, but regression checker's awk still
barfs.

Adding yet another \ and it still works with mawk and gawk; I hope
regression checker is OK.

Three identical change logs in a row.

Neil.

	* opts.sh: Quote '+' in regex.

Index: opts.sh
===================================================================
RCS file: /cvs/gcc/gcc/gcc/opts.sh,v
retrieving revision 1.13
diff -u -p -b -r1.13 opts.sh
--- opts.sh	15 Jun 2003 19:21:48 -0000	1.13
+++ opts.sh	15 Jun 2003 19:33:53 -0000
@@ -49,7 +49,7 @@ ${AWK} '
 	result = "0"
 	for (j = 0; j < n_langs; j++) {
 	    regex = " " langs[j] " "
-	    gsub ( "\+", "\\+", regex )
+	    gsub ( "\\+", "\\+", regex )
 	    if (flags ~ regex)
 		result = result " | " macros[j]
 	}


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-15 19:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-15 17:40 options.h build fails with mawk Richard Henderson
2003-06-15 19:23 ` Neil Booth
2003-06-15 19:35   ` Neil Booth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).