Commit dadbefd3 by Jakub Jelinek Committed by Jakub Jelinek

re PR other/54692 (gcc doesn't build with "-Og -g")

	PR other/54692
	* configure.ac (CFLAGS, CXXFLAGS): Remove -Ofast or -Og
	properly.
	* configure: Regenerated.

From-SVN: r191702
parent 915efd1f
2012-09-25 Jakub Jelinek <jakub@redhat.com>
PR other/54692
* configure.ac (CFLAGS, CXXFLAGS): Remove -Ofast or -Og
properly.
* configure: Regenerated.
2012-09-25 Georg-Johann Lay <avr@gjlay.de>
PR other/54701
......
......@@ -4863,8 +4863,8 @@ fi
# optimizations to be activated explicitly by the toplevel.
case "$CC" in
*/prev-gcc/xgcc*) ;;
*) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" `
CXXFLAGS=`echo $CXXFLAGS | sed "s/-O[s0-9]* *//" ` ;;
*) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
esac
......
......@@ -296,8 +296,8 @@ 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]]* *//" `
CXXFLAGS=`echo $CXXFLAGS | sed "s/-O[[s0-9]]* *//" ` ;;
*) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[[ ]]//" -e "s/-O[[gs]][[ ]]//" -e "s/-O[[0-9]]*[[ ]]//" `
CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[[ ]]//" -e "s/-O[[gs]][[ ]]//" -e "s/-O[[0-9]]*[[ ]]//" ` ;;
esac
AC_SUBST(CFLAGS)
AC_SUBST(CXXFLAGS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment