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>2006-07-25 12:39:57 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2006-07-25 12:39:57 +0400
commitc684482df781c15e444220aceba4b9fd2a3f2629 (patch)
tree3ab3cdce82529d24e4e802dce0fb5f9504aba5c5 /configure.in
parentaee7eefa4df20635befcfa3b8919ffccad3c7c35 (diff)
Sync from GCC
2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr> PR bootstrap/18058 * configure.in: Add -fkeep-inline-functions to CFLAGS for stage 1 if the bootstrap compiler is a GCC version that supports it. * configure: Regenerate. config: 2006-07-21 David Daney <ddaney@avtrex.com> PR libgcj/28426 * gxx-include-dir.m4: Use target_alias in path for cross build.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 48b3a334a..0c8335186 100644
--- a/configure.in
+++ b/configure.in
@@ -2397,6 +2397,21 @@ case $build in
stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
;;
esac
+
+# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
+if test "$GCC" = yes; then
+ saved_CFLAGS="$CFLAGS"
+
+ # 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_MSG_RESULT([yes]); stage1_cflags="$stage1_cflags -fkeep-inline-functions"],
+ [AC_MSG_RESULT([no])])
+
+ CFLAGS="$saved_CFLAGS"
+fi
+
AC_SUBST(stage1_cflags)
# Enable -Werror in bootstrap stage2 and later.