[FFmpeg-devel] [PATCH 01/11] configure: remove option -fno-expensive-optimizations for loongson

Michael Niedermayer michael at niedermayer.cc
Fri May 13 12:21:00 CEST 2016


On Fri, May 13, 2016 at 06:01:06PM +0800, 周晓勇 wrote:
> From c0f8c4e1bbe39216ba8f6df118703ad2c72a45e1 Mon Sep 17 00:00:00 2001
> From: Zhou Xiaoyong <zhouxiaoyong at loongson.cn>
> Date: Thu, 12 May 2016 17:45:08 +0800
> Subject: [PATCH 01/11] configure: remove option -fno-expensive-optimizations
>  for loongson
> 
> 
> 1. gcc-4.9.3-5.fc21.loongson.2.mips64el in Fedora21 for loongson has
> fix the bug in commit 2c34389551b6ba3d90f8783806c337e387e603cd.
> 2. the latest release version of Fedora for loongson is
> http://mirror.lemote.com/fedora/live/Fedora-MATE-Live-2.iso
> ---
>  configure | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> 
> diff --git a/configure b/configure
> index df82eb2..0b9fdf3 100755
> --- a/configure
> +++ b/configure
> @@ -4292,13 +4292,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"

missing check for gcc version
as this was a recent (like now?) change in gcc, there will be users
that still use the old version for a long time to come
simply miscompiling code for them is not ok

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160513/dd1440d3/attachment.sig>


More information about the ffmpeg-devel mailing list