[Liboil-commit] liboil/i386_amd64

David Schleef ds at kemper.freedesktop.org
Thu Oct 22 12:30:55 PDT 2009


 liboil/i386_amd64/sum.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 163ee9485d2f4ac471f2afcfaf61a6e60d36c197
Author: David Schleef <ds at schleef.org>
Date:   Thu Oct 22 12:30:36 2009 -0700

    Add a memory clobber to placate gcc

diff --git a/liboil/i386_amd64/sum.c b/liboil/i386_amd64/sum.c
index 8bf4de4..6946450 100644
--- a/liboil/i386_amd64/sum.c
+++ b/liboil/i386_amd64/sum.c
@@ -30,7 +30,8 @@ sum_s16_mmx (int16_t *d, int16_t *s, int n)
         "  movq %%mm0, 0(%2)\n"
         "  emms\n"
         : "+r" (s), "+r" (n)
-        : "r" (a));
+        : "r" (a)
+        : "memory");
 
     sum += a[0];
     sum += a[1];


More information about the Liboil-commit mailing list