aboutsummaryrefslogtreecommitdiff
path: root/libjava/sysdep
diff options
context:
space:
mode:
authorAndreas Tobler <andreast@gcc.gnu.org>2004-07-07 20:24:00 +0200
committerAndreas Tobler <andreast@gcc.gnu.org>2004-07-07 20:24:00 +0200
commit0e497b6cf53afd5217837a1d42f81e021b1554be (patch)
treef139418133c35b3fbb6df78e889682f1f8d85563 /libjava/sysdep
parentfc72b3800247719e3cde796bc36f860ae4c74d7b (diff)
downloadgcc-0e497b6cf53afd5217837a1d42f81e021b1554be.zip
gcc-0e497b6cf53afd5217837a1d42f81e021b1554be.tar.gz
gcc-0e497b6cf53afd5217837a1d42f81e021b1554be.tar.bz2
configure.host: Enable hash synchronization on Darwin.
2004-07-07 Andreas Tobler <a.tobler@schweiz.ch> * configure.host: Enable hash synchronization on Darwin. * sysdep/powerpc/locks.h (compare_and_swap): Use '\n' instead of ';', since this is a comment on Darwin. (compare_and_swap_release): Likewise. From-SVN: r84214
Diffstat (limited to 'libjava/sysdep')
-rw-r--r--libjava/sysdep/powerpc/locks.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/libjava/sysdep/powerpc/locks.h b/libjava/sysdep/powerpc/locks.h
index c9c3183..5a6a945 100644
--- a/libjava/sysdep/powerpc/locks.h
+++ b/libjava/sysdep/powerpc/locks.h
@@ -33,12 +33,12 @@ compare_and_swap (volatile obj_addr_t *addr, obj_addr_t old,
int ret;
__asm__ __volatile__ (
- "0: " _LARX "%0,0,%1 ;"
- " xor. %0,%3,%0;"
- " bne 1f;"
- " " _STCX "%2,0,%1;"
- " bne- 0b;"
- "1: "
+ "0: " _LARX "%0,0,%1 \n"
+ " xor. %0,%3,%0\n"
+ " bne 1f\n"
+ " " _STCX "%2,0,%1\n"
+ " bne- 0b\n"
+ "1: \n"
: "=&r" (ret)
: "r" (addr), "r" (new_val), "r" (old)
: "cr0", "memory");
@@ -67,12 +67,12 @@ compare_and_swap_release (volatile obj_addr_t *addr, obj_addr_t old,
__asm__ __volatile__ ("sync" : : : "memory");
__asm__ __volatile__ (
- "0: " _LARX "%0,0,%1 ;"
- " xor. %0,%3,%0;"
- " bne 1f;"
- " " _STCX "%2,0,%1;"
- " bne- 0b;"
- "1: "
+ "0: " _LARX "%0,0,%1 \n"
+ " xor. %0,%3,%0\n"
+ " bne 1f\n"
+ " " _STCX "%2,0,%1\n"
+ " bne- 0b\n"
+ "1: \n"
: "=&r" (ret)
: "r" (addr), "r" (new_val), "r" (old)
: "cr0", "memory");