From 1d89b61077f10ff90ba128dde09b559e9de93cb4 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 25 Jul 2006 08:39:57 +0000 Subject: Sync from GCC 2006-07-04 Eric Botcazou 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 PR libgcj/28426 * gxx-include-dir.m4: Use target_alias in path for cross build. --- configure.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 48b3a33..0c83351 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. -- cgit v1.1