Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2007-06-04 12:32:52 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2007-06-04 12:32:52 +0400
commit540baa7bc3bb3dcb19b9cc85e2985b22cfc899d4 (patch)
tree7ddc2413c43aadc8433bdd0c099af90248c02304 /configure.ac
parentf0136ac908139d876f3ebb6c4070ebc847d70cdd (diff)
2007-06-04 Paolo Bonzini <bonzini@gnu.org>
Sync with gcc: 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.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 9c38fadfd..6309b6e03 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])])