aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Nerode <neroden@gcc.gnu.org>2004-03-22 08:38:04 +0000
committerNathanael Nerode <neroden@gcc.gnu.org>2004-03-22 08:38:04 +0000
commit340de83fd55cbd92e1a168094e61506c967dc9e2 (patch)
tree1c556dcbbcb3585452c3995d226ab8f65f7de88f
parenta836124ac91b14886fcddb3df6f386b297550cab (diff)
downloadgcc-340de83fd55cbd92e1a168094e61506c967dc9e2.zip
gcc-340de83fd55cbd92e1a168094e61506c967dc9e2.tar.gz
gcc-340de83fd55cbd92e1a168094e61506c967dc9e2.tar.bz2
* Makefile.tpl (experimental top level bootstrap) Move stage1
language setting from all- target to configure- target; disable intermodule optimization in stage 1; prevent gratuitous rebuilds of stage 1. * Makefile.in: Regenerate. * configure.in: Comma-separate stage 1 language list for top level bootstrap. * configure: Regenerate. From-SVN: r79816
-rw-r--r--ChangeLog9
-rw-r--r--Makefile.in19
-rw-r--r--Makefile.tpl19
-rwxr-xr-xconfigure4
-rw-r--r--configure.in4
5 files changed, 43 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index f9e6841..57d088d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
+ * Makefile.tpl (experimental top level bootstrap) Move stage1
+ language setting from all- target to configure- target; disable
+ intermodule optimization in stage 1; prevent gratuitous rebuilds
+ of stage 1.
+ * Makefile.in: Regenerate.
+ * configure.in: Comma-separate stage 1 language list for top
+ level bootstrap.
+ * configure: Regenerate.
+
* Makefile.tpl: Clean up experimental top level bootstrap support:
note known problems; set CONFIG_SHELL; don't set BUILD_CC; relocate
prev-gcc in configure- targets as well as all- targets.
diff --git a/Makefile.in b/Makefile.in
index dff7fde..7e2cf55 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -23777,7 +23777,11 @@ STAMP = echo timestamp >
STAGE1_CFLAGS=@stage1_cflags@
STAGE1_LANGUAGES=@stage1_languages@
-# TODO: deal with OBJS-onestep
+# For stage 1:
+# * we force-disable intermodule optimizations, even if
+# --enable-intermodule was passed. Luckily, autoconf always accepts
+# the last* argument when conflicting --enable arguments are passed.
+# * we build only C (and possibly Ada).
configure-stage1-gcc:
echo configure-stage1-gcc > stage_last ; \
if [ -f stage1-gcc/Makefile ] ; then \
@@ -23820,19 +23824,26 @@ configure-stage1-gcc:
libsrcdir="$$s/gcc";; \
esac; \
$(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} ; \
+ $(HOST_CONFIGARGS) $${srcdiroption} \
+ --disable-intermodule \
+ --enable-languages="$(STAGE1_LANGUAGES)"; \
cd .. ; \
mv gcc stage1-gcc ; \
$(STAMP) configure-stage1-gcc
-all-stage1-gcc: configure-stage1-gcc all-bootstrap
+# Real targets act phony if they depend on phony targets; this hack
+# prevents gratuitous rebuilding of stage 1.
+prebootstrap:
+ $(MAKE) all-bootstrap
+ $(STAMP) prebootstrap
+
+all-stage1-gcc: configure-stage1-gcc prebootstrap
echo all-stage1-gcc > stage_last ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
mv stage1-gcc gcc ; \
cd gcc && \
$(MAKE) $(GCC_FLAGS_TO_PASS) \
- LANGUAGES="$(STAGE1_LANGUAGES)" \
CFLAGS="$(STAGE1_CFLAGS)" \
COVERAGE_FLAGS= || exit 1 ; \
cd .. ; \
diff --git a/Makefile.tpl b/Makefile.tpl
index a44cc40..de85594 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -1294,7 +1294,11 @@ STAMP = echo timestamp >
STAGE1_CFLAGS=@stage1_cflags@
STAGE1_LANGUAGES=@stage1_languages@
-# TODO: deal with OBJS-onestep
+# For stage 1:
+# * we force-disable intermodule optimizations, even if
+# --enable-intermodule was passed. Luckily, autoconf always accepts
+# the last* argument when conflicting --enable arguments are passed.
+# * we build only C (and possibly Ada).
configure-stage1-gcc:
echo configure-stage1-gcc > stage_last ; \
if [ -f stage1-gcc/Makefile ] ; then \
@@ -1337,19 +1341,26 @@ configure-stage1-gcc:
libsrcdir="$$s/gcc";; \
esac; \
$(SHELL) $${libsrcdir}/configure \
- $(HOST_CONFIGARGS) $${srcdiroption} ; \
+ $(HOST_CONFIGARGS) $${srcdiroption} \
+ --disable-intermodule \
+ --enable-languages="$(STAGE1_LANGUAGES)"; \
cd .. ; \
mv gcc stage1-gcc ; \
$(STAMP) configure-stage1-gcc
-all-stage1-gcc: configure-stage1-gcc all-bootstrap
+# Real targets act phony if they depend on phony targets; this hack
+# prevents gratuitous rebuilding of stage 1.
+prebootstrap:
+ $(MAKE) all-bootstrap
+ $(STAMP) prebootstrap
+
+all-stage1-gcc: configure-stage1-gcc prebootstrap
echo all-stage1-gcc > stage_last ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
mv stage1-gcc gcc ; \
cd gcc && \
$(MAKE) $(GCC_FLAGS_TO_PASS) \
- LANGUAGES="$(STAGE1_LANGUAGES)" \
CFLAGS="$(STAGE1_CFLAGS)" \
COVERAGE_FLAGS= || exit 1 ; \
cd .. ; \
diff --git a/configure b/configure
index fc89711..a884c32 100755
--- a/configure
+++ b/configure
@@ -2283,8 +2283,8 @@ if test -d ${srcdir}/gcc; then
missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
case ${boot_language} in
yes)
- # Add to (space-separated) list of stage 1 languages.
- stage1_languages="${stage1_languages} ${language}"
+ # Add to (comma-separated) list of stage 1 languages.
+ stage1_languages="${stage1_languages},${language}"
;;
esac
;;
diff --git a/configure.in b/configure.in
index d94a11d..0a9f05f 100644
--- a/configure.in
+++ b/configure.in
@@ -1180,8 +1180,8 @@ if test -d ${srcdir}/gcc; then
missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
case ${boot_language} in
yes)
- # Add to (space-separated) list of stage 1 languages.
- stage1_languages="${stage1_languages} ${language}"
+ # Add to (comma-separated) list of stage 1 languages.
+ stage1_languages="${stage1_languages},${language}"
;;
esac
;;