[FFmpeg-devel] [PATCH] configure: loongson revert expensive optimizations.

2018-06-13 Thread Shiyou Yin
revert expensive optimizations in gcc O3 optimization.
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: I82e50376ea152789bf512f08bc5a273693be8aad
Signed-off-by: Shiyou Yin 
---
 configure | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index 7c14323..074bb65 100755
--- a/configure
+++ b/configure
@@ -4765,13 +4765,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
 ;;
-- 
2.1.0


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


[FFmpeg-devel] [PATCH] configure: loongson revert expensive optimizations in gcc O3 optimization

2015-09-09 Thread 周晓勇
Hi, Michael


the yum repo maybe changed since last time i offered the fedora21.
you could get some resource you may need from this address:
http://mirror.lemote.com/fedora/
http://www.loongnix.org/cgit


---
From f751d5e88a3f1dac956983d4df49e6797bd33e73 Mon Sep 17 00:00:00 2001
From: ZhouXiaoyong 
Date: Wed, 9 Sep 2015 16:00:23 +0800
Subject: [PATCH] configure: loongson revert expensive optimizations in gcc O3
 optimization


The failure of fate-acodec-dca or dca2 tests are caused by ccache.
At the same time enable ccache and expensive-optimizations, dca parser
would be compiled incorrectly. So there is no bug in loongson gcc-4.9.x.


Signed-off-by: ZhouXiaoyong 
---
 configure | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


diff --git a/configure b/configure
index cd0c22a..7d5dae7 100755
--- a/configure
+++ b/configure
@@ -4070,13 +4070,13 @@ elif enabled mips; then
 disable aligned_stack
 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
 ;;
-- 
2.1.4

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


Re: [FFmpeg-devel] [PATCH] configure: loongson revert expensive optimizations in gcc O3 optimization

2015-09-09 Thread 周晓勇
Sorry, there is no need to test and verify this patch.
my colleague do a wrong test with a wrong configure.


> -原始邮件-
> 发件人: "周晓勇" <zhouxiaoy...@loongson.cn>
> 发送时间: 2015年9月9日 星期三
> 收件人: ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
> 抄送: 
> 主题: [FFmpeg-devel] [PATCH] configure: loongson revert expensive optimizations 
> in gcc O3 optimization
> 
> Hi, Michael
> 
> 
> the yum repo maybe changed since last time i offered the fedora21.
> you could get some resource you may need from this address:
> http://mirror.lemote.com/fedora/
> http://www.loongnix.org/cgit
> 
> 
> ---
> From f751d5e88a3f1dac956983d4df49e6797bd33e73 Mon Sep 17 00:00:00 2001
> From: ZhouXiaoyong <zhouxiaoy...@loongson.cn>
> Date: Wed, 9 Sep 2015 16:00:23 +0800
> Subject: [PATCH] configure: loongson revert expensive optimizations in gcc O3
>  optimization
> 
> 
> The failure of fate-acodec-dca or dca2 tests are caused by ccache.
> At the same time enable ccache and expensive-optimizations, dca parser
> would be compiled incorrectly. So there is no bug in loongson gcc-4.9.x.
> 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel