summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-17 17:09:20 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-17 17:09:20 +0000
commit868af6b6b6980d2e7008d2c6676e02166b275763 (patch)
tree0a24fde01f96bf6a5dde201b5fcbad0833e24669
parentdce7058449a0ea0adfc67737f3780d7d304de67e (diff)
downloadgcc-868af6b6b6980d2e7008d2c6676e02166b275763.tar.gz
PR bootstrap/62077
* configure.ac (--enable-stage1-checking): Default to release,misc,gimple,rtlflag,tree,types if --disable-checking or --enable-checking is not specified and DEV-PHASE is not experimental. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222187 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--ChangeLog9
-rwxr-xr-xconfigure14
-rw-r--r--configure.ac14
3 files changed, 35 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a4b3fd2af6..88dc50ee349 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2015-04-17 Jakub Jelinek <jakub@redhat.com>
+
+ PR bootstrap/62077
+ * configure.ac (--enable-stage1-checking): Default to
+ release,misc,gimple,rtlflag,tree,types if --disable-checking
+ or --enable-checking is not specified and DEV-PHASE is not
+ experimental.
+ * configure: Regenerated.
+
2015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com>
* Makefile.tpl (EXTRA_HOST_EXPORTS): New variables.
diff --git a/configure b/configure
index 064e69b80ec..7616f88a447 100755
--- a/configure
+++ b/configure
@@ -14761,7 +14761,19 @@ if test "${enable_stage1_checking+set}" = set; then :
enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
else
if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
- stage1_checking=--enable-checking=yes,types
+ # For --disable-checking or implicit --enable-checking=release, avoid
+ # setting --enable-checking=gc in the default stage1 checking for LTO
+ # bootstraps. See PR62077.
+ stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
+ case $BUILD_CONFIG in
+ *lto*)
+ if test "x$enable_checking" = x && \
+ test -d ${srcdir}/gcc && \
+ test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
+ stage1_checking=--enable-checking=yes,types
+ fi;;
+ *) stage1_checking=--enable-checking=yes,types;;
+ esac
else
stage1_checking=--enable-checking=$enable_checking,types
fi
diff --git a/configure.ac b/configure.ac
index 56f6af3e83d..8c85a08c382 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3482,7 +3482,19 @@ AC_ARG_ENABLE(stage1-checking,
[choose additional checking for stage1 of the compiler])],
[stage1_checking=--enable-checking=${enable_stage1_checking}],
[if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
- stage1_checking=--enable-checking=yes,types
+ # For --disable-checking or implicit --enable-checking=release, avoid
+ # setting --enable-checking=gc in the default stage1 checking for LTO
+ # bootstraps. See PR62077.
+ stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
+ case $BUILD_CONFIG in
+ *lto*)
+ if test "x$enable_checking" = x && \
+ test -d ${srcdir}/gcc && \
+ test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
+ stage1_checking=--enable-checking=yes,types
+ fi;;
+ *) stage1_checking=--enable-checking=yes,types;;
+ esac
else
stage1_checking=--enable-checking=$enable_checking,types
fi])