[92823] trunk/dports/devel/boehmgc-devel

jeremyhu at macports.org jeremyhu at macports.org
Mon May 7 14:21:14 PDT 2012


Revision: 92823
          https://trac.macports.org/changeset/92823
Author:   jeremyhu at macports.org
Date:     2012-05-07 14:21:12 -0700 (Mon, 07 May 2012)
Log Message:
-----------
boehmgc-devel: Add missing asm.patch

Added Paths:
-----------
    trunk/dports/devel/boehmgc-devel/files/
    trunk/dports/devel/boehmgc-devel/files/asm.patch

Added: trunk/dports/devel/boehmgc-devel/files/asm.patch
===================================================================
--- trunk/dports/devel/boehmgc-devel/files/asm.patch	                        (rev 0)
+++ trunk/dports/devel/boehmgc-devel/files/asm.patch	2012-05-07 21:21:12 UTC (rev 92823)
@@ -0,0 +1,22 @@
+--- libatomic_ops/src/atomic_ops/sysdeps/gcc/x86.h.orig	2011-06-03 02:17:00.000000000 -0700
++++ libatomic_ops/src/atomic_ops/sysdeps/gcc/x86.h	2012-05-06 20:24:11.000000000 -0700
+@@ -113,7 +113,7 @@ AO_test_and_set_full(volatile AO_TS_t *a
+   /* Note: the "xchg" instruction does not need a "lock" prefix */
+   __asm__ __volatile__("xchgb %0, %1"
+                 : "=q"(oldval), "=m"(*addr)
+-                : "0"(0xff), "m"(*addr) : "memory");
++                : "0"((unsigned char)0xff), "m"(*addr) : "memory");
+   return (AO_TS_VAL_t)oldval;
+ }
+ #define AO_HAVE_test_and_set_full
+--- libatomic_ops/src/atomic_ops/sysdeps/gcc/x86_64.h.orig	2011-06-03 02:17:00.000000000 -0700
++++ libatomic_ops/src/atomic_ops/sysdeps/gcc/x86_64.h	2012-05-06 20:24:00.000000000 -0700
+@@ -110,7 +110,7 @@ AO_test_and_set_full(volatile AO_TS_t *a
+   /* Note: the "xchg" instruction does not need a "lock" prefix */
+   __asm__ __volatile__("xchgb %0, %1"
+                 : "=q"(oldval), "=m"(*addr)
+-                : "0"(0xff), "m"(*addr) : "memory");
++                : "0"((unsigned char)0xff), "m"(*addr) : "memory");
+   return (AO_TS_VAL_t)oldval;
+ }
+ #define AO_HAVE_test_and_set_full
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120507/352ce5a3/attachment.html>


More information about the macports-changes mailing list