diff options
author | Jakub Jelinek <jakub@redhat.com> | 2012-09-25 12:27:47 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2012-09-25 12:27:47 +0000 |
commit | f4a0e1239e5996cfd9e2864cb919a01dd6d2ef32 (patch) | |
tree | afb77c983a1fa14d7d79ddab8118e8359a7ef9a9 /gcc/configure | |
parent | c26124126784313c2927ec16abcc6bae7777b8f8 (diff) |
PR other/54692
* configure.ac (CFLAGS, CXXFLAGS): Remove -Ofast or -Og
properly.
* configure: Regenerated.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@191702 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/configure b/gcc/configure index b656d9e5266..ff98a2254eb 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 |