This is the mail archive of the gcc-patches@gcc.gnu.org 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?

Paolo
2006-10-24  Paolo Bonzini  <bonzini@gnu.org>

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

Index: configure.in
===================================================================
--- configure.in	(revision 117976)
+++ configure.in	(working copy)
@@ -2406,6 +2442,14 @@ fi
 
 AC_SUBST(stage1_cflags)
 
+# Enable --enable-checking in stage1 of the compiler.
+AC_ARG_ENABLE(stage1-checking,
+[  --enable-stage1-checking   choose additional checking for stage1
+                          of the compiler.],
+[stage1_checking=--enable-checking=${enable_stage1_checking}],
+[stage1_checking=--enable-checking${enable_checking:+=}$enable_checking])
+AC_SUBST(stage1_checking)
+
 # Enable -Werror in bootstrap stage2 and later.
 # Change the default to "no" on release branches.
 AC_ARG_ENABLE(werror,
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 gcc.info).
 
 STAGE1_CFLAGS=@stage1_cflags@
+STAGE1_CHECKING=@stage1_checking@
 STAGE1_LANGUAGES=@stage1_languages@
 
 # 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]