Commit e11a4ae5 by Neil Booth Committed by Neil Booth

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
parent 6fc9e67e
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> 2003-06-01 Andreas Schwab <schwab@suse.de>
* config/m68k/linux.h: Remove code protected by USE_GNULIBC_1. * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
......
...@@ -1320,9 +1320,12 @@ c-opts.o : c-opts.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \ ...@@ -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) \ $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
$< $(OUTPUT_OPTION) @TARGET_SYSTEM_ROOT_DEFINE@ $< $(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 $(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) \ 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 \ $(TREE_H) $(C_COMMON_H) c-pragma.h flags.h toplev.h langhooks.h \
output.h except.h real.h $(TM_P_H) output.h except.h real.h $(TM_P_H)
......
...@@ -598,3 +598,5 @@ C ObjC C++ ObjC++ ...@@ -598,3 +598,5 @@ C ObjC C++ ObjC++
w w
C ObjC C++ ObjC++ C ObjC C++ ObjC++
; This comment is to ensure we retain the blank line above.
...@@ -19,7 +19,15 @@ ...@@ -19,7 +19,15 @@
# #
# Usage: opts.sh outfile.c outfile.h file1.opt [file2.opt, ...] # 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 SORT=sort # Could be /bin/sort or /usr/bin/sort
C_FILE=$1; shift C_FILE=$1; shift
...@@ -30,7 +38,7 @@ cat "$@" | ${AWK} ' ...@@ -30,7 +38,7 @@ cat "$@" | ${AWK} '
# Ignore comments and blank lines # Ignore comments and blank lines
/^[ \t]*(;|$)/ { next } /^[ \t]*(;|$)/ { next }
/^[^ \t]/ { gsub ("\n", "\034", $0); print } /^[^ \t]/ { gsub ("\n", "\034", $0); print }
' | LANG=C ${SORT} | ${AWK} ' ' | ${SORT} | ${AWK} '
function switch_flags (langs, flags) function switch_flags (langs, flags)
{ {
langs = ":" langs ":" langs = ":" langs ":"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment