[FFmpeg-cvslog] configure: Fix Barcelona and Bulldozer compiler options with suncc

James Almer git at videolan.org
Sat Jan 19 14:49:22 CET 2013


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Jan 19 01:02:19 2013 -0300| [b6576dca997645dd09b9b6647dd502b5b8450c2a] | committer: Michael Niedermayer

configure: Fix Barcelona and Bulldozer compiler options with suncc

Barcelona/amdfam10 does not support SSE4 instructions.
Also, Bulldozer supports AVX instructions, so use them instead.

Signed-off-by: James Almer <jamrial at gmail.com>
Reviewed-by: Carl Eugen Hoyos <cehoyos at ag.or.at>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b6576dca997645dd09b9b6647dd502b5b8450c2a
---

 configure |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 80ec740..399e313 100755
--- a/configure
+++ b/configure
@@ -2501,7 +2501,8 @@ suncc_flags(){
                     core2)              echo -xarch=ssse3 -xchip=core2   ;;
                     corei7)           echo -xarch=sse4_2 -xchip=nehalem  ;;
                     corei7-avx)       echo -xarch=avx -xchip=sandybridge ;;
-                    amdfam10|barcelona|bdver*) echo -xarch=sse4_1        ;;
+                    amdfam10|barcelona)       echo -xtarget=barcelona    ;;
+                    bdver*)                   echo -xarch=avx            ;;
                     athlon-4|athlon-[mx]p)    echo -xarch=ssea           ;;
                     k8|opteron|athlon64|athlon-fx)
                                               echo -xarch=sse2a          ;;



More information about the ffmpeg-cvslog mailing list