Commit 2c343895 authored by 周晓勇's avatar 周晓勇 Committed by Michael Niedermayer

configure: loongson disable expensive optimizations in gcc O3 optimization

With gcc-4.9.2 loongson faild in test fate-dca, this is caused by option
-fexpensive-optimizations in -O3 optimization. We disable it temporarily
before the bug been fixed up.
Signed-off-by: 's avatarZhouXiaoyong <zhouxiaoyong@loongson.cn>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 9d8070af
...@@ -4000,13 +4000,13 @@ elif enabled mips; then ...@@ -4000,13 +4000,13 @@ elif enabled mips; then
disable aligned_stack disable aligned_stack
case $cpu in case $cpu in
loongson3*) loongson3*)
cpuflags="-march=loongson3a -mhard-float" cpuflags="-march=loongson3a -mhard-float -fno-expensive-optimizations"
;; ;;
loongson2e) loongson2e)
cpuflags="-march=loongson2e -mhard-float" cpuflags="-march=loongson2e -mhard-float -fno-expensive-optimizations"
;; ;;
loongson2f) loongson2f)
cpuflags="-march=loongson2f -mhard-float" cpuflags="-march=loongson2f -mhard-float -fno-expensive-optimizations"
;; ;;
esac esac
;; ;;
......
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