re PR bootstrap/62077 (--with-build-config=bootstrap-lto fails)
authorJakub Jelinek <jakub@redhat.com>
Fri, 17 Apr 2015 17:09:20 +0000 (19:09 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 17 Apr 2015 17:09:20 +0000 (19:09 +0200)
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.

From-SVN: r222187

ChangeLog
configure
configure.ac

index 4a4b3fd2af60c5bc26bec192e2487e37c43b4cae..88dc50ee3499e9af30c9a06e0969844151aaa2a9 100644 (file)
--- 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.
index 064e69b80ec860334be2d8087ee49b6a8e5b1998..7616f88a447b906930f717319100dce94771c989 100755 (executable)
--- 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
index 56f6af3e83de93f7e03ade20652d7005f6f4124f..8c85a08c382f8de32a161df47fa80b06d72c2758 100644 (file)
@@ -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])