Sync from GCC
authorPaolo Bonzini <bonzini@gnu.org>
Tue, 25 Jul 2006 08:39:57 +0000 (08:39 +0000)
committerPaolo Bonzini <bonzini@gnu.org>
Tue, 25 Jul 2006 08:39:57 +0000 (08:39 +0000)
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.

ChangeLog
config/ChangeLog
config/gxx-include-dir.m4
configure
configure.in

index d86ec0aac6bb024703f5276ca4c0e89fc858d403..c509360638d5ba4f0a34cc2cd38da71d1824445f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-07-25  Paolo Bonzini  <bonzini@gnu.org>
+
+       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.
+
 2006-07-22  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * configure.in: Allow mingw32 and cygwin targets to build cross-gdb.
index 55ea2e292f94b4ab1878a8c4c0f80f77423a2dee..bf0c5d6dfe1795f03d76184e705e9f1b2d32ec42 100644 (file)
@@ -9,6 +9,11 @@
         PR target/26792
         * unwind_ipinfo.m4: New.
 
+       2006-07-21  David Daney  <ddaney@avtrex.com>
+
+        PR libgcj/28426
+        * gxx-include-dir.m4: Use target_alias in path for cross build.
+
 2006-07-18  Paolo Bonzini  <bonzini@gnu.org>
 
         * acx.m4: Support --with-build-libsubdir and AC_SUBST
index 0e6e4ffc397500e46cee0074e97e37a32d716e2b..4f54d427f7e2af158ec2946dd4376490b78670d7 100644 (file)
@@ -17,7 +17,13 @@ case "${with_gxx_include_dir}" in
       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
       *)
        libstdcxx_incdir='c++/$(gcc_version)'
-       gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
+       gxx_include_dir='include/$(libstdcxx_incdir)'
+       if test -n "$with_cross_host" && 
+           test x"$with_cross_host" != x"no"; then     
+          gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
+        else
+          gxx_include_dir='${prefix}/'"$gxx_include_dir"
+        fi;;
     esac ;;
   *) gxx_include_dir=${with_gxx_include_dir} ;;
 esac
index 0f948368f2b0c696301ab674b4457031d8d19975..22cdb87e473d99b8027c6b87cf85d201e8bf5a33 100755 (executable)
--- 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.
index 48b3a334a1f64c5443a5c00f5c39ea67f32dc4c9..0c83351863c4324cb6c0482a2ad3e23cf69bd5c7 100644 (file)
@@ -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.
This page took 0.051272 seconds and 4 git commands to generate.