From b72e6a2de51d265d0ca4a1297c8eb3eb3dd4f8b6 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 17 Dec 2002 20:38:05 +0000 Subject: [PATCH] * Makefile.tpl (all-gcc): Use 'make quickstrap' if there was a previous 'make bootstrap'. * Makefile.in: Regenerate. --- ChangeLog | 6 ++++++ Makefile.in | 11 +++++++---- Makefile.tpl | 11 +++++++---- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index b96314f42c..3946cf29ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-12-16 Jason Merrill + + * Makefile.tpl (all-gcc): Use 'make quickstrap' if there was a + previous 'make bootstrap'. + * Makefile.in: Regenerate. + 2002-12-17 Hans-Peter Nilsson * configure.in (noconfigdirs) [mmix-*-*]: Disable libgloss and gdb. diff --git a/Makefile.in b/Makefile.in index f7c38950f1..881c925620 100644 --- a/Makefile.in +++ b/Makefile.in @@ -7460,14 +7460,17 @@ gcc/Makefile: config.status $(HOST_CONFIGARGS) $${srcdiroption} \ || exit 1 -# Don't remake gcc if it's already been made by 'bootstrap'; that causes -# nothing but trouble. This wart will be fixed eventually by moving +# Don't 'make all' in gcc if it's already been made by 'bootstrap'; that +# causes trouble. This wart will be fixed eventually by moving # the bootstrap behavior to this file. .PHONY: all-gcc maybe-all-gcc maybe-all-gcc: all-gcc: configure-gcc - @if [ -f gcc/xgcc ] ; then \ - exit 0 ; \ + @if [ -f gcc/stage_last ] ; then \ + r=`${PWD}`; export r; \ + s=`cd $(srcdir); ${PWD}`; export s; \ + $(SET_LIB_PATH) \ + (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) quickstrap); \ else \ r=`${PWD}`; export r; \ s=`cd $(srcdir); ${PWD}`; export s; \ diff --git a/Makefile.tpl b/Makefile.tpl index 9f64035a38..b2f7442576 100644 --- a/Makefile.tpl +++ b/Makefile.tpl @@ -1134,14 +1134,17 @@ gcc/Makefile: config.status $(HOST_CONFIGARGS) $${srcdiroption} \ || exit 1 -# Don't remake gcc if it's already been made by 'bootstrap'; that causes -# nothing but trouble. This wart will be fixed eventually by moving +# Don't 'make all' in gcc if it's already been made by 'bootstrap'; that +# causes trouble. This wart will be fixed eventually by moving # the bootstrap behavior to this file. .PHONY: all-gcc maybe-all-gcc maybe-all-gcc: all-gcc: configure-gcc - @if [ -f gcc/xgcc ] ; then \ - exit 0 ; \ + @if [ -f gcc/stage_last ] ; then \ + r=`${PWD}`; export r; \ + s=`cd $(srcdir); ${PWD}`; export s; \ + $(SET_LIB_PATH) \ + (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) quickstrap); \ else \ r=`${PWD}`; export r; \ s=`cd $(srcdir); ${PWD}`; export s; \