This is the mail archive of the 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]

Re: sh/awk issues

 > From: Neil Booth <>
 > Kaveh, I'm applying this patch.  This should get us down to
 > just issues with your native awk.  Thanks to Zack for his mail.
 > I need to know if your ${AWK} supports
 > 1) functions
 > 2) gsub
 > Based on your answer I'll update  It's possible that, with
 > this patch, we pick up a different awk and all is now OK.
 > Thanks,
 > Neil.
 > 	* (c-options.c, c-options.h): Parallel make safe.
 > 	* c.opt: End in blank line.
 > 	* Take AWK from environment if available; use C locale.

Parallel make seems to be fixed, I tried with -j20 and it worked.  And
the blank line fixes the missing entry problem.  Thanks.

The finding AWK thing almost works.  We still need to pass AWK from
the Makefile into the SHELL's environment.  With the patch below it
finds and runs a "good" awk as determined by configure.  Solaris nawk
works (as does gawk of course.)  So luckily I don't have to add gawk
to the giant list of necessary tools (yet.)  We'll see if nawk is
available everywhere soon enough. :-)

I also noted that c-options.[ch] weren't cleaned up anywhere.  So I
added them to the mostlyclean target.

Bootstrapped with C-only on sparc-sun-solaris2.7.  Also tested "make
clean" and verified that c-options.[ch] were removed.

Ok to install?


2003-06-01  Kaveh R. Ghazi  <>

	* (c-options.c): Pass in $(AWK) to
	(mostlyclean): Delete c-options.c and c-options.h.

diff -rup orig/egcc-CVS20030601/gcc/ egcc-CVS20030601/gcc/
--- orig/egcc-CVS20030601/gcc/	2003-06-01 20:01:04.000000000 -0400
+++ egcc-CVS20030601/gcc/	2003-06-01 21:03:42.104500000 -0400
@@ -1321,7 +1321,7 @@ c-opts.o : c-opts.c $(CONFIG_H) $(SYSTEM
 c-options.c: c.opt $(srcdir)/
-	$(SHELL) $(srcdir)/ c-options.c c-options.h $(srcdir)/c.opt
+	AWK=$(AWK) $(SHELL) $(srcdir)/ c-options.c c-options.h $(srcdir)/c.opt
 c-options.h: c-options.c
@@ -2783,7 +2783,7 @@ mostlyclean: $(INTL_MOSTLYCLEAN)
 	-rm -f xlimits.h
 # Delete other built files.
 	-rm -f xsys-protos.hT
-	-rm -f specs.h options.h gencheck.h
+	-rm -f specs.h options.h gencheck.h c-options.c c-options.h
 # Delete the stamp and temporary files.
 	-rm -f s-* tmp-* stamp-* stmp-*
 	-rm -f */stamp-* */tmp-*

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