[vlc-devel] commit: macosx: Change the optimizations paramaters. (Derk-Jan Hartman )

git version control git at videolan.org
Fri Jun 12 16:12:11 CEST 2009


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Fri Jun 12 16:07:22 2009 +0200| [1a004f7e8dec31356bd2042fc09c215284a6c50a] | committer: Derk-Jan Hartman 

macosx: Change the optimizations paramaters.

>From the beginning we were using -march=pentium-m -mtune=prescott
However this was based on the Intel development machine of Apple. All actually shipped Intel machines by Apple are at least Core machines. As such, we might as well use -march=prescott -mtune=generic now. For 10.6 I currently think we should use -march=prescott -mtune=core2, since that will allow us to use much more advanced optimizations, and only few machines were shipped as Core, most were Core2 machines.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1a004f7e8dec31356bd2042fc09c215284a6c50a
---

 configure.ac             |    2 +-
 extras/contrib/bootstrap |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7ecf0bc..c4ccb78 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1625,7 +1625,7 @@ if test -n "${with_tuning}"; then
     fi
 else
     if test "${SYS}" = "darwin" -a "${host_cpu}" != "powerpc"; then
-        CFLAGS_TUNING="-march=pentium-m -mtune=prescott"
+        CFLAGS_TUNING="-march=prescott -mtune=generic"
     elif test "${host_cpu}" = "i686" -o "${host_cpu}" = "i586" -o "${host_cpu}" = "i486" -o "${host_cpu}" = "i386"; then
         CFLAGS_TUNING="-mtune=pentium2"
     elif test "${host_cpu}" = "x86_64"; then
diff --git a/extras/contrib/bootstrap b/extras/contrib/bootstrap
index 93ff3bd..0cb9e05 100755
--- a/extras/contrib/bootstrap
+++ b/extras/contrib/bootstrap
@@ -158,7 +158,7 @@ case $HOST in
         fi
         echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak
         echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk" >> config.mak
-        CFLAGS_TUNING=" -march=pentium-m -mtune=prescott -arch i386"
+        CFLAGS_TUNING=" -march=prescott -mtune=generic -arch i386"
         EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
         EXTRA_LDFLAGS=" -arch i386 -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}"
         CC="/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2"
@@ -181,7 +181,7 @@ case $HOST in
         HAVE_DARWIN_10=1
         echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak
         echo "MACOSX_SDK = /Developer/SDKs/MacOSX${SDK_TARGET}.sdk" >> config.mak
-        CFLAGS_TUNING=" -march=core2"
+        CFLAGS_TUNING=" -march=prescott -mtune=core2"
         EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
         EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}"
         echo "PATH = /bin:/usr/bin:/usr/local/bin" >> config.mak




More information about the vlc-devel mailing list