diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-06-01 18:24:08 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-06-01 18:24:08 +0000 |
commit | e11a4ae53fa42c71831f3865f04c55c7a07dc300 (patch) | |
tree | 1e7c6e2efd378397495290fea96cd8e90fdbb84b /gcc | |
parent | 6fc9e67e61e085fea544f06b3406c8576255db70 (diff) | |
download | gcc-e11a4ae53fa42c71831f3865f04c55c7a07dc300.zip gcc-e11a4ae53fa42c71831f3865f04c55c7a07dc300.tar.gz gcc-e11a4ae53fa42c71831f3865f04c55c7a07dc300.tar.bz2 |
Makefile.in (c-options.c, [...]): Parallel make safe.
* Makefile.in (c-options.c, c-options.h): Parallel make safe.
* c.opt: End in blank line.
* opts.sh: Take AWK from environment if available; use C locale.
From-SVN: r67305
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/Makefile.in | 5 | ||||
-rw-r--r-- | gcc/c.opt | 2 | ||||
-rw-r--r-- | gcc/opts.sh | 12 |
4 files changed, 22 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b254385..dc83f5c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-06-01 Neil Booth <neil@daikokuya.co.uk> + + * Makefile.in (c-options.c, c-options.h): Parallel make safe. + * c.opt: End in blank line. + * opts.sh: Take AWK from environment if available; use C locale. + 2003-06-01 Andreas Schwab <schwab@suse.de> * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1. diff --git a/gcc/Makefile.in b/gcc/Makefile.in index fb9c788..e1c18d3 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1320,9 +1320,12 @@ c-opts.o : c-opts.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \ $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ $< $(OUTPUT_OPTION) @TARGET_SYSTEM_ROOT_DEFINE@ -c-options.h c-options.c: c.opt $(srcdir)/opts.sh +c-options.c: c.opt $(srcdir)/opts.sh $(SHELL) $(srcdir)/opts.sh c-options.c c-options.h $(srcdir)/c.opt +c-options.h: c-options.c + @true + c-cppbuiltin.o : c-cppbuiltin.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ $(TREE_H) $(C_COMMON_H) c-pragma.h flags.h toplev.h langhooks.h \ output.h except.h real.h $(TM_P_H) @@ -598,3 +598,5 @@ C ObjC C++ ObjC++ w C ObjC C++ ObjC++ + +; This comment is to ensure we retain the blank line above. diff --git a/gcc/opts.sh b/gcc/opts.sh index 182f796..9a4df53 100644 --- a/gcc/opts.sh +++ b/gcc/opts.sh @@ -19,7 +19,15 @@ # # Usage: opts.sh outfile.c outfile.h file1.opt [file2.opt, ...] -AWK=/usr/bin/awk +# Always operate in the C locale. +LANG=C +LANGUAGE=C +LC_ALL=C +export LANG LANGUAGE LC_ALL + +# Set AWK if environment has not already set it. +AWK=${AWK-awk} + SORT=sort # Could be /bin/sort or /usr/bin/sort C_FILE=$1; shift @@ -30,7 +38,7 @@ cat "$@" | ${AWK} ' # Ignore comments and blank lines /^[ \t]*(;|$)/ { next } /^[^ \t]/ { gsub ("\n", "\034", $0); print } -' | LANG=C ${SORT} | ${AWK} ' +' | ${SORT} | ${AWK} ' function switch_flags (langs, flags) { langs = ":" langs ":" |