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

Michael Niedermayer michael at niedermayer.cc
Wed Aug 22 01:03:54 EEST 2018


On Tue, Aug 21, 2018 at 04:06:05PM +0800, Shiyou Yin wrote:
> >-----Original Message-----
> >From: ffmpeg-devel-bounces at ffmpeg.org [mailto:ffmpeg-devel-bounces at ffmpeg.org] On Behalf Of
> >Shiyou Yin
> >Sent: Thursday, July 12, 2018 8:44 PM
> >To: ffmpeg-devel at ffmpeg.org
> >Subject: [FFmpeg-devel] [PATCH 1/9] configure: [loongson] revert no-expensive-optimizations
> >
> >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: I780125d4cdee71d40457aaee22126ba0547a2c8f
> >Signed-off-by: Shiyou Yin <yinshiyou-hf at loongson.cn>
> >---
> > configure | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >
> >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
> >             ;;
> >--
> >2.1.0
> >
> 
> Hi Michael, could you please help to apply this patch. It has been tested on loongson platform.

shouldnt this test the compiler the user uses ? its version or something ?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Take away the freedom of one citizen and you will be jailed, take away
the freedom of all citizens and you will be congratulated by your peers
in Parliament.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180822/85653d4c/attachment.sig>


More information about the ffmpeg-devel mailing list