aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2006-07-04 09:52:47 +0200
committerEric Botcazou <ebotcazou@gcc.gnu.org>2006-07-04 07:52:47 +0000
commit0b50988af53a1e6237a8c3b61c5da1c4d1a41117 (patch)
treec3b9e31f432f73e77358b1d33eac3ed3d9d9a590 /configure.in
parent84e9ad15fabafedf6815d5a6c90d65c7774c7792 (diff)
downloadgcc-0b50988af53a1e6237a8c3b61c5da1c4d1a41117.zip
gcc-0b50988af53a1e6237a8c3b61c5da1c4d1a41117.tar.gz
gcc-0b50988af53a1e6237a8c3b61c5da1c4d1a41117.tar.bz2
re PR bootstrap/18058 (Bootstrap fails with non-GCC compilers)
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. gcc/ * Makefile.in (BUILD_RTL): Add build/vec.o. (build/gencondmd.o): Filter out -fkeep-inline-functions. (build/genextract): Delete. (build/genautomata): Likewise. From-SVN: r115172
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 dd5d21d..a67a0a2 100644
--- a/configure.in
+++ b/configure.in
@@ -2411,6 +2411,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.