aboutsummaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2018-04-26 08:47:31 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2018-04-26 08:47:31 +0000
commitae05281f4ac17db1d602bdd59d3fdd5acc3752ff (patch)
tree917475f0f1a38c0aade007489d0ed6d6a691815d /Makefile.tpl
parentc76d9edb09d262a3badc87d5583abcfbc2e94854 (diff)
downloadgcc-ae05281f4ac17db1d602bdd59d3fdd5acc3752ff.zip
gcc-ae05281f4ac17db1d602bdd59d3fdd5acc3752ff.tar.gz
gcc-ae05281f4ac17db1d602bdd59d3fdd5acc3752ff.tar.bz2
Makefile.tpl (STAGE1_TFLAGS): Add -fno-checking.
2018-04-26 Richard Biener <rguenther@suse.de> * Makefile.tpl (STAGE1_TFLAGS): Add -fno-checking. (STAGE2_CFLAGS): Likewise. (STAGE2_TFLAGS): Likewise. (STAGE3_CFLAGS): Add -fchecking. (STAGE3_TFLAGS): Likewise. (STAGEtrain_CFLAGS): Filter out -fchecking. (STAGEtrain_TFLAGS): Likewise. * Makefile.in: Re-generate. From-SVN: r259669
Diffstat (limited to 'Makefile.tpl')
-rw-r--r--Makefile.tpl14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile.tpl b/Makefile.tpl
index 1f23b79..5967c7a 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -452,11 +452,21 @@ STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
--disable-coverage --enable-languages="$(STAGE1_LANGUAGES)" \
--disable-build-format-warnings
+# When using the slow stage1 compiler disable IL verification and forcefully
+# enable it when using the stage2 compiler instead. As we later compare
+# stage2 and stage3 we are merely avoid doing redundant work, plus we apply
+# checking when building all target libraries for release builds.
+STAGE1_TFLAGS += -fno-checking
+STAGE2_CFLAGS += -fno-checking
+STAGE2_TFLAGS += -fno-checking
+STAGE3_CFLAGS += -fchecking
+STAGE3_TFLAGS += -fchecking
+
STAGEprofile_CFLAGS = $(STAGE2_CFLAGS) -fprofile-generate
STAGEprofile_TFLAGS = $(STAGE2_TFLAGS)
-STAGEtrain_CFLAGS = $(STAGE3_CFLAGS)
-STAGEtrain_TFLAGS = $(STAGE3_TFLAGS)
+STAGEtrain_CFLAGS = $(filter-out -fchecking,$(STAGE3_CFLAGS))
+STAGEtrain_TFLAGS = $(filter-out -fchecking,$(STAGE3_TFLAGS))
STAGEfeedback_CFLAGS = $(STAGE4_CFLAGS) -fprofile-use
STAGEfeedback_TFLAGS = $(STAGE4_TFLAGS)