http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54692
--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-24 14:49:55 UTC --- (In reply to comment #6) > Guess > *) CFLAGS=`echo $CFLAGS | sed "s/-O[[s0-9]]* *//" ` > CXXFLAGS=`echo $CXXFLAGS | sed "s/-O[[s0-9]]* *//" ` ;; > needs to be now > -O[[s0-9gf]] instead (also for -Ofast). > That said, I don't see how it is related to using STAGE1_CFLAGS (note missing > XX). I wonder why we do the above at all? I suppose that's for removing a configure default, but the toplevel passes STAGE1_CFLAGS as CFLAGS to gcc configure (that's why we need to re-specify CFLAGS on the make command-line?!). So - why not drop this and instead save/restore flags around AC_PROG_CC/CXX?