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]

[toplevel patch] Fix PR29544, stage1 not hardcoded to --enable-checking

This was never noticed as toplevel bootstrap was never on a release branch so far, so --enable-checking was used for all stages.

We can actually do better with about the same code, and add a --enable-stage1-checking flag. This way you can have a gcac bootstrap only for the stage1 compiler (to be used in compilation of stage2); it's already slow enough!

Ok for both branch and mainline?

2006-10-24  Paolo Bonzini  <>

	* (stage1_checking): Compute and substitute.
	* Makefile.def (bootstrap_stage 1): Add $(STAGE1_CHECKING) to
	configure flags.
	* Makefile.tpl (STAGE1_CHECKING): Define.
	* configure: Regenerate.
	* Regenerate.

---	(revision 117976)
+++	(working copy)
@@ -2406,6 +2442,14 @@ fi
+# Enable --enable-checking in stage1 of the compiler.
+[  --enable-stage1-checking   choose additional checking for stage1
+                          of the compiler.],
 # Enable -Werror in bootstrap stage2 and later.
 # Change the default to "no" on release branches.
Index: Makefile.def
--- Makefile.def	(revision 117976)
+++ Makefile.def	(working copy)
@@ -483,7 +483,7 @@ dependencies = { module=all-target-winsu
 // Toplevel bootstrap
 bootstrap_stage = {
 	id=1 ;
-	stage_configure_flags='--disable-intermodule \
+	stage_configure_flags='--disable-intermodule $(STAGE1_CHECKING) \
 	  --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"' ;
 	stage_make_flags='CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)"' ; };
 bootstrap_stage = {
Index: Makefile.tpl
--- Makefile.tpl	(revision 117976)
+++ Makefile.tpl	(working copy)
@@ -1250,6 +1250,7 @@ LEAN = false
 # overrideable (for a bootstrap build stage1 also builds
 # We only want to compare .o files, so set this!

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