OSDN Git Service

PPC: make inline asm xform address test work with Apple tools
authorMåns Rullgård <mans@mansr.com>
Thu, 5 Nov 2009 21:48:09 +0000 (21:48 +0000)
committerMåns Rullgård <mans@mansr.com>
Thu, 5 Nov 2009 21:48:09 +0000 (21:48 +0000)
Originally committed as revision 20466 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 4d28d04..748c5bf 100755 (executable)
--- a/configure
+++ b/configure
@@ -2163,7 +2163,7 @@ elif enabled ppc; then
 
     check_asm dcbzl     '"dcbzl 0, 1"'
     check_asm ppc4xx    '"maclhw r10, r11, r12"'
-    check_asm xform_asm '"lwzx 0, %y0" :: "Z"(*(int*)0)'
+    check_asm xform_asm '"lwzx %1, %y0" :: "Z"(*(int*)0), "r"(0)'
 
     # AltiVec flags: The FSF version of GCC differs from the Apple version
     if enabled altivec; then