diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2eb98539a08..f2dd2c83266 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-09-13 Jakub Jelinek + + * configure.ac (CXXFLAGS): Remove -O2 when not bootstrapping. + * configure: Regenerated. + 2012-08-13 Uros Bizjak * config/i386/i386.md (prefetch): Do not assert mode of operand 0. diff --git a/gcc/configure b/gcc/configure index 86fa82543e0..4a6a77e9858 100755 --- a/gcc/configure +++ b/gcc/configure @@ -4863,10 +4863,12 @@ fi # optimizations to be activated explicitly by the toplevel. case "$CC" in */prev-gcc/xgcc*) ;; - *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;; + *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` + CXXFLAGS=`echo $CXXFLAGS | sed "s/-O[s0-9]* *//" ` ;; esac + # Determine PICFLAG for target gnatlib. @@ -17782,7 +17784,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 17785 "configure" +#line 17787 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -17888,7 +17890,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 17891 "configure" +#line 17893 "configure" #include "confdefs.h" #if HAVE_DLFCN_H diff --git a/gcc/configure.ac b/gcc/configure.ac index 9f200c7a991..5a260228973 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -296,9 +296,11 @@ AC_SUBST(OUTPUT_OPTION) # optimizations to be activated explicitly by the toplevel. case "$CC" in */prev-gcc/xgcc*) ;; - *) CFLAGS=`echo $CFLAGS | sed "s/-O[[s0-9]]* *//" ` ;; + *) CFLAGS=`echo $CFLAGS | sed "s/-O[[s0-9]]* *//" ` + CXXFLAGS=`echo $CXXFLAGS | sed "s/-O[[s0-9]]* *//" ` ;; esac AC_SUBST(CFLAGS) +AC_SUBST(CXXFLAGS) # Determine PICFLAG for target gnatlib. GCC_PICFLAG_FOR_TARGET