SOURCES: ogle-cvs-20070625.patch - real fix for darwin problem

baggins baggins at pld-linux.org
Mon Jun 25 17:56:02 CEST 2007


Author: baggins                      Date: Mon Jun 25 15:56:02 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- real fix for darwin problem

---- Files affected:
SOURCES:
   ogle-cvs-20070625.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/ogle-cvs-20070625.patch
diff -u SOURCES/ogle-cvs-20070625.patch:1.2 SOURCES/ogle-cvs-20070625.patch:1.3
--- SOURCES/ogle-cvs-20070625.patch:1.2	Mon Jun 25 17:52:02 2007
+++ SOURCES/ogle-cvs-20070625.patch	Mon Jun 25 17:55:57 2007
@@ -2629,6 +2629,33 @@
  sparc)
  	if test "x$GCC" = xyes; then
  	  O_CFLAGS="$O_CFLAGS -mcpu=ultrasparc -mvis"
+@@ -738,10 +833,25 @@
+ powerpc|ppc)
+ 	if test "x$GCC" = xyes; then
+ 	  O_CFLAGS="$O_CFLAGS -fomit-frame-pointer -funroll-loops"
++
++dnl On MacOS X with Apple's gcc3.3, -mcpu=7400 and -faltivec is used.
++dnl We assume that no other version of gcc is used in darwin
++
+ dnl is the right? needed? use just -m7400 ? need new gcc for that..
+ dnl is there a -mcpu -march flag that we should use?
+ dnl should be a try compile on this line.. 
+-	  XCFLAGS="-Wa,-m7400"
++
++dnl What are correct options for altivec on other platforms/os/gcc versions?
++	  case "$host_os" in
++	  darwin*)
++	  	XCFLAGS="-mcpu=7400 -faltivec -O3"
++dnl Apples gcc3.3 only understands 'old' motorola-style altivec asm.
++		USE_ALTIVEC_DARWIN=yes
++		;;
++	  *)
++	  	XCFLAGS="-Wa,-m7400"
++		;;
++	  esac
+ dnl that sets USE_ALTIVEC depending on the success
+ 	  USE_ALTIVEC=yes
+ 	fi
 @@ -775,6 +885,19 @@
    BUILD_MMX=1
    CFLAGS="$CFLAGS $XCFLAGS"
@@ -2659,7 +2686,7 @@
  AC_SUBST(USE_ALTIVEC)
  AM_CONDITIONAL(USE_ALTIVEC, [test "x$USE_ALTIVEC" = xyes])
 +AC_SUBST(USE_ALTIVEC_DARWIN)
-+AM_CONDITIONAL(USE_ALTIVEC_DARWIN, [test "x$USE_ALTIVEC" = xyes])
++AM_CONDITIONAL(USE_ALTIVEC_DARWIN, [test "x$USE_ALTIVEC_DARWIN" = xyes])
  AC_SUBST(USE_SPARCASM)
  AM_CONDITIONAL(USE_SPARCASM, [test "x$USE_SPARCASM" = xyes])
  
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/ogle-cvs-20070625.patch?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list