[MPlayer-dev-eng] [patch] Fix mp3lib to use local labels and not fail with -ftracer in CFLAGS

Samuli Suominen ssuominen at gentoo.org
Sat Jul 18 15:58:14 CEST 2009


Fix mp3lib to use local labels so it doesn't fail with -ftracer in CFLAGS.

Patch by Luca Barbato <lu_zero at gentoo.org> (credits to him, not me)

Index: mp3lib/decode_mmx.c
===================================================================
--- mp3lib/decode_mmx.c	(revision 29321)
+++ mp3lib/decode_mmx.c	(working copy)
@@ -219,7 +219,7 @@
     //printf("DEBUG: channel %d, bo %d, off %d\n", channel, bo, 16 - bo1);
 __asm__ volatile(
 ASMALIGN(4)
-".L03:\n\t"
+"0:\n\t"
         "movq  (%1),%%mm0\n\t"
         "movq  64(%1),%%mm4\n\t"
         "pmaddwd (%2),%%mm0\n\t"
@@ -265,7 +265,7 @@
         "add $8,%3\n\t"

 	"decl %0\n\t"
-        "jnz  .L03\n\t"
+        "jnz  0b\n\t"

         "movq  (%1),%%mm0\n\t"
         "pmaddwd (%2),%%mm0\n\t"
@@ -291,7 +291,7 @@

         "movl $7,%0\n\t"
 ASMALIGN(4)
-".L04:\n\t"
+"1:\n\t"
         "movq  (%1),%%mm0\n\t"
         "movq  64(%1),%%mm4\n\t"
         "pmaddwd (%2),%%mm0\n\t"
@@ -340,7 +340,7 @@
         "add $128,%1\n\t"
         "add $8,%3\n\t"
         "decl %0\n\t"
-	"jnz  .L04\n\t"
+	"jnz  1b\n\t"

         "movq  (%1),%%mm0\n\t"
         "pmaddwd (%2),%%mm0\n\t"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-1.0_rc2_p20090530-fix-mp3lib-use-local-labels-2.patch
Type: text/x-patch
Size: 986 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090718/cee9b521/attachment.bin>


More information about the MPlayer-dev-eng mailing list