From 9cc1244e762b1cab9245e54a3061e12950c3b8f1 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 30 May 2007 15:32:34 +0200 Subject: [PATCH] re PR bootstrap/29382 (Bootstrap comparison failure!) PR bootstrap/29382 * configure.in: Don't use -fkeep-inline-functions for GCC < 3.3.1. * configure: Rebuilt. From-SVN: r125182 --- ChangeLog | 6 ++++++ configure | 6 ++++++ configure.ac | 8 +++++++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cb9b572fe51..74d559ae2e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-05-30 Jakub Jelinek + + PR bootstrap/29382 + * configure.ac: Don't use -fkeep-inline-functions for GCC < 3.3.1. + * configure: Rebuilt. + 2007-05-28 Roberto Costa * MAINTAINERS (Write After Approval): Removed my name. diff --git a/configure b/configure index 6e989c29a52..13425f3e04e 100755 --- 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 () { diff --git a/configure.ac b/configure.ac index 9c38fadfd94..6309b6e033d 100644 --- a/configure.ac +++ b/configure.ac @@ -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])])