aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2012-09-25 14:27:47 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2012-09-25 14:27:47 +0200
commitdadbefd3596a06d06f539e4c0048326a26ac3c75 (patch)
treeafb77c983a1fa14d7d79ddab8118e8359a7ef9a9 /gcc/configure
parent915efd1fc987429382050fd69bf040229b38c9a5 (diff)
downloadgcc-dadbefd3596a06d06f539e4c0048326a26ac3c75.zip
gcc-dadbefd3596a06d06f539e4c0048326a26ac3c75.tar.gz
gcc-dadbefd3596a06d06f539e4c0048326a26ac3c75.tar.bz2
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
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/configure b/gcc/configure
index b656d9e..ff98a22 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -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