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

Michael Niedermayer michael at niedermayer.cc
Tue Aug 28 00:35:42 EEST 2018


On Mon, Aug 27, 2018 at 04:10:01PM +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: Saturday, August 25, 2018 11:04 AM
> >To: 'FFmpeg development discussions and patches'
> >Subject: Re: [FFmpeg-devel] [PATCH 1/9] configure: [loongson] revert no-expensive-optimizations
> >
> >>> Hi Michael, please help to review the following updates.
> >>>
> >>>
> >>> diff --git a/configure b/configure
> >>> index b9c9d0b..08cf48e 100755
> >>> --- a/configure
> >>> +++ b/configure
> >>> @@ -4796,15 +4796,24 @@ elif enabled mips; then
> >>>                  disable mipsfpu
> >>>                  disable mipsdsp
> >>>                  disable mipsdspr2
> >>> +                # When gcc version less than 5.3.0, add -fno-expensive-optimizations flag.
> >>> +                if [ $cc == gcc ]; then
> >>> +                    gcc_version=$(gcc -dumpversion)
> >>> +                    if [ "$(echo "$gcc_version 5.3.0" | tr " " "\n"
> >>> + | sort -rV | head -n 1)" ==
> >>> "$gcc_version" ]; then
> >>> +                        expensive_optimization_flag=""
> >>> +                    else
> >>> +                        expensive_optimization_flag="-fno-expensive-optimizations"
> >>> +                    fi
> >>> +                fi
> >>
> >>This patch looks corrupted (by a newline)
> >>
> >>[...]
> >
> >
> >Hi Michael, has repasted below, To avoid being corrupted again, I add an attachment.
> >
> >diff --git a/configure b/configure
> >index b9c9d0b..08cf48e 100755
> >--- a/configure
> >+++ b/configure
> >@@ -4796,15 +4796,24 @@ elif enabled mips; then
> >                 disable mipsfpu
> >                 disable mipsdsp
> >                 disable mipsdspr2
> >+                # When gcc version less than 5.3.0, add -fno-expensive-optimizations flag.
> >+                if [ $cc == gcc ]; then
> >+                    gcc_version=$(gcc -dumpversion)
> >+                    if [ "$(echo "$gcc_version 5.3.0" | tr " " "\n" | sort -rV | head -n 1)"
> >=="$gcc_version" ]; then
> >+                        expensive_optimization_flag=""
> >+                    else
> >+                        expensive_optimization_flag="-fno-expensive-optimizations"
> >+                    fi
> >+                fi
> >                 case $cpu in
> >                     loongson3*)
> >-                        cpuflags="-march=loongson3a -mhard-float -fno-expensive-optimizations"
> >+                        cpuflags="-march=loongson3a -mhard-float $expensive_optimization_flag"
> >                     ;;
> >                     loongson2e)
> >-                        cpuflags="-march=loongson2e -mhard-float -fno-expensive-optimizations"
> >+                        cpuflags="-march=loongson2e -mhard-float $expensive_optimization_flag"
> >                     ;;
> >                     loongson2f)
> >-                        cpuflags="-march=loongson2f -mhard-float -fno-expensive-optimizations"
> >+                        cpuflags="-march=loongson2f -mhard-float $expensive_optimization_flag"
> >                     ;;
> >                 esac
> >             ;;
> >--
> >2.1.0
> 
> Is there any other comment for this patch?

no, will apply

thanks

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

You can kill me, but you cannot change the truth.
-------------- 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/20180827/3a0c06d3/attachment.sig>


More information about the ffmpeg-devel mailing list