Il 23/08/2012 22:54, Mike Stump ha scritto: > > # 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) > > in configure.ac does this. I think if CXXFLAGS is also so done, we'd gain > parity.
Agreed, patch is preapproved. This is not really done to aid debugging though, it is to avoid optimization bugs when compiling stage1. Paolo