diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2006-07-04 09:52:47 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2006-07-04 07:52:47 +0000 |
commit | 0b50988af53a1e6237a8c3b61c5da1c4d1a41117 (patch) | |
tree | c3b9e31f432f73e77358b1d33eac3ed3d9d9a590 /configure | |
parent | 84e9ad15fabafedf6815d5a6c90d65c7774c7792 (diff) | |
download | gcc-0b50988af53a1e6237a8c3b61c5da1c4d1a41117.tar.gz |
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')
-rwxr-xr-x | configure | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/configure b/configure index 1734e2eeb84..03d1e31ee7c 100755 --- a/configure +++ b/configure @@ -7257,6 +7257,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:3894: checking whether -fkeep-inline-functions is supported" >&5 + cat > conftest.$ac_ext <<EOF +#line 3896 "configure" +#include "confdefs.h" + +int main() { + +; return 0; } +EOF +if { (eval echo configure:3903: \"$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. |