summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2006-07-25 08:39:57 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2006-07-25 08:39:57 +0000
commitc684482df781c15e444220aceba4b9fd2a3f2629 (patch)
tree3ab3cdce82529d24e4e802dce0fb5f9504aba5c5 /configure
parentaee7eefa4df20635befcfa3b8919ffccad3c7c35 (diff)
downloadcygnal-c684482df781c15e444220aceba4b9fd2a3f2629.tar.gz
cygnal-c684482df781c15e444220aceba4b9fd2a3f2629.tar.bz2
cygnal-c684482df781c15e444220aceba4b9fd2a3f2629.zip
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')
-rwxr-xr-xconfigure31
1 files changed, 31 insertions, 0 deletions
diff --git a/configure b/configure
index 0f948368f..22cdb87e4 100755
--- a/configure
+++ b/configure
@@ -7263,6 +7263,37 @@ case $build in
;;
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"
+ echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
+echo "configure:7274: checking whether -fkeep-inline-functions is supported" >&5
+ cat > conftest.$ac_ext <<EOF
+#line 7276 "configure"
+#include "confdefs.h"
+
+int main() {
+
+; return 0; }
+EOF
+if { (eval echo configure:7283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ echo "$ac_t""yes" 1>&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ echo "$ac_t""no" 1>&6
+fi
+rm -f conftest*
+
+ CFLAGS="$saved_CFLAGS"
+fi
+
+
# Enable -Werror in bootstrap stage2 and later.
# Change the default to "no" on release branches.