aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2006-06-15 06:26:59 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2006-06-15 06:26:59 +0000
commitec6c73926468e6de525d3be6810508990959c2b8 (patch)
tree94d2bc0b48e63617c3f931843f720650b6acac62 /gcc/configure.ac
parente6bd55657aa22a960174d604e2b363e7600d7aff (diff)
downloadgcc-ec6c73926468e6de525d3be6810508990959c2b8.zip
gcc-ec6c73926468e6de525d3be6810508990959c2b8.tar.gz
gcc-ec6c73926468e6de525d3be6810508990959c2b8.tar.bz2
Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Export CFLAGS and LDFLAGS too.
2006-06-15 Paolo Bonzini <bonzini@gnu.org> * Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Export CFLAGS and LDFLAGS too. * Makefile.in: Regenerate. gcc: 2006-06-15 Paolo Bonzini <bonzini@gnu.org> * configure.ac (CFLAGS): Get them from the toplevel or from the configure invocation. * configure: Regenerate. * Makefile.in (CFLAGS): Substitute value provided by configure. From-SVN: r114673
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 081c4a0..7a490dd 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -278,6 +278,14 @@ fi
AC_SUBST(NO_MINUS_C_MINUS_O)
AC_SUBST(OUTPUT_OPTION)
+# Remove the -O2: for historical reasons, unless bootstrapping we prefer
+# optimizations to be activated explicitly by the toplevel.
+case "$CC" in
+ */prev-gcc/xgcc*) ;;
+ *) CFLAGS=`echo $CFLAGS | sed "s/-O[[s0-9]]* *//" ` ;;
+esac
+AC_SUBST(CFLAGS)
+
# -------------------------
# Check C compiler features
# -------------------------