re PR bootstrap/29382 (Bootstrap comparison failure!)
authorJakub Jelinek <jakub@redhat.com>
Wed, 30 May 2007 13:32:34 +0000 (15:32 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 30 May 2007 13:32:34 +0000 (15:32 +0200)
PR bootstrap/29382
* configure.in: Don't use -fkeep-inline-functions for GCC < 3.3.1.
* configure: Rebuilt.

From-SVN: r125182

ChangeLog
configure
configure.ac

index cb9b572fe51de6f43d25e275579b51da5133b2f8..74d559ae2e751934c84581168e82b6476fa954e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-05-30  Jakub Jelinek  <jakub@redhat.com>
+
+       PR bootstrap/29382
+       * configure.ac: Don't use -fkeep-inline-functions for GCC < 3.3.1.
+       * configure: Rebuilt.
+
 2007-05-28  Roberto Costa  <robsettantasei@gmail.com>
 
        * MAINTAINERS (Write After Approval): Removed my name.
index 6e989c29a5256cf108c0ff8f0b70462dabcd92d4..13425f3e04e8db3721ffceef9af4de98dcc607f8 100755 (executable)
--- a/configure
+++ b/configure
@@ -11464,6 +11464,12 @@ cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 
+#if (__GNUC__ < 3) \
+    || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
+                         || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
+#error http://gcc.gnu.org/PR29382
+#endif
+
 int
 main ()
 {
index 9c38fadfd9425d26d49853b97081b19199d410df..6309b6e033df021ce7d8f5cb789186cb5431554c 100644 (file)
@@ -2566,7 +2566,13 @@ if test "$GCC" = yes; then
   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
   CFLAGS="$CFLAGS -fkeep-inline-functions"
   AC_MSG_CHECKING([whether -fkeep-inline-functions is supported])
-  AC_TRY_COMPILE(,,
+  AC_TRY_COMPILE([
+#if (__GNUC__ < 3) \
+    || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
+                         || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
+#error http://gcc.gnu.org/PR29382
+#endif
+    ],,
     [AC_MSG_RESULT([yes]); stage1_cflags="$stage1_cflags -fkeep-inline-functions"],
     [AC_MSG_RESULT([no])])