| Date: Mon, 24 Jan 2011 09:04:20 -0800
clean up and force 32 bit compiles
Diffstat:
src/9vx/gccmagic/cmpswap.c | 5 +----
src/Makefrag | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
--- |
| @@ -1,10 +1,7 @@
int oscmpswap(long* addr, long oldval, long newval)
{
- bool res;
- print("oscmpswap: addr %p, *addr %ld, oldval %ld, newval %ld\n",
- addr, *addr, oldval, newval);
+ int res;
res = __sync_bool_compare_and_swap(addr, oldval, newval);
- print("oscmpswap: result %d\n", res);
if (res)
return 1;
return 0; |
| @@ -10,7 +10,7 @@ ifeq ($(OS),darwin)
endif
# Host environment compiler options
-HOST_CC := $(CC) -fno-inline -arch i386 -m32 -DARCH=i386
+HOST_CC := $(CC) -fno-inline -m32 -DARCH=i386
ifeq ($(OS),darwin)
HOST_CC := $(HOST_CC) -D_XOPEN_SOURCE
endif |