[FFmpeg-devel,1/9] configure: loongson revert expensive optimizations

Submitted by Shiyou Yin on July 11, 2018, 9:44 a.m.

Details

Message ID 1531302285-15315-1-git-send-email-yinshiyou-hf@loongson.cn
State Superseded
Headers show

Commit Message

Shiyou Yin July 11, 2018, 9:44 a.m.
Revert expensive optimizations in gcc O3 optimization for loongson.
The bug in  gcc-4.9.x has been fixed in gcc master branch.
Loongson released gcc-4.9.3-3.fc21.loongson with this patch.
More bug info see:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67736
https://gcc.gnu.org/ml/gcc-patches/2012-05/msg00401.html

Change-Id: I871e8b651cb9c2723aa2559f2617f0720b37fae7
Signed-off-by: Shiyou Yin <yinshiyou-hf@loongson.cn>
---
 configure | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Carl Eugen Hoyos July 11, 2018, 12:05 p.m.
2018-07-11 11:44 GMT+02:00, Shiyou Yin <yinshiyou-hf@loongson.cn>:
> Revert expensive optimizations in gcc O3 optimization for loongson.
> The bug in  gcc-4.9.x has been fixed in gcc master branch.
> Loongson released gcc-4.9.3-3.fc21.loongson with this patch.

I believe the title of the patch can be clarified ("revert
no-expensive-optimizations", not "revert optimizations).

Carl Eugen
Shiyou Yin July 12, 2018, 12:14 p.m.
> 2018-07-11 11:44 GMT+02:00, Shiyou Yin <yinshiyou-hf@loongson.cn>:

> > Revert expensive optimizations in gcc O3 optimization for loongson.

> > The bug in  gcc-4.9.x has been fixed in gcc master branch.

> > Loongson released gcc-4.9.3-3.fc21.loongson with this patch.

> 

> I believe the title of the patch can be clarified ("revert

> no-expensive-optimizations", not "revert optimizations).

> 

> Carl Eugen


Thank you for your suggestion, I have reupload this patch.

本邮件及其附件含有龙芯中科技术有限公司的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部 分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。 

This email and its attachments contain confidential information from Loongson
Technology Corporation Limited, which is intended only for the person or entity
whose address is listed above. Any use of the information contained herein in
any way (including, but not limited to, total or partial disclosure,
reproduction or dissemination) by persons other than the intended recipient(s)
is prohibited. If you receive this email in error, please notify the sender by
phone or email immediately and delete it.

Patch hide | download patch | download mbox

diff --git a/configure b/configure
index b1a4dcf..17a7ea9 100755
--- a/configure
+++ b/configure
@@ -4789,13 +4789,13 @@  elif enabled mips; then
                 disable mipsdspr2
                 case $cpu in
                     loongson3*)
-                        cpuflags="-march=loongson3a -mhard-float -fno-expensive-optimizations"
+                        cpuflags="-march=loongson3a -mhard-float"
                     ;;
                     loongson2e)
-                        cpuflags="-march=loongson2e -mhard-float -fno-expensive-optimizations"
+                        cpuflags="-march=loongson2e -mhard-float"
                     ;;
                     loongson2f)
-                        cpuflags="-march=loongson2f -mhard-float -fno-expensive-optimizations"
+                        cpuflags="-march=loongson2f -mhard-float"
                     ;;
                 esac
             ;;