diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-24 02:44:26 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-24 02:44:26 +0000 |
commit | f00ad21f9735625bdafd29c11bc6db0491d8fe2a (patch) | |
tree | cdff866a281ed7a6ebc131100612f4a22c136c64 /libjava/sysdep | |
parent | d8ff58268091282d724fa7735ad02b0b33b78f47 (diff) | |
download | ppe42-gcc-f00ad21f9735625bdafd29c11bc6db0491d8fe2a.tar.gz ppe42-gcc-f00ad21f9735625bdafd29c11bc6db0491d8fe2a.zip |
PR target/35485
* configure.ac: AIX threads are Posix threads.
Set signal handler to aix-signal.h
* configure: Regenerate.
* classpath/native/fdlibm/fdlibm.h: Undef hz.
* include/aix-signal.h: New file.
* sysdep/powerpc/locks.h: Avoid GNU Assembler syntax.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141335 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/sysdep')
-rw-r--r-- | libjava/sysdep/powerpc/locks.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/libjava/sysdep/powerpc/locks.h b/libjava/sysdep/powerpc/locks.h index fe4f01ec182..2e9eb0eb36c 100644 --- a/libjava/sysdep/powerpc/locks.h +++ b/libjava/sysdep/powerpc/locks.h @@ -1,6 +1,6 @@ // locks.h - Thread synchronization primitives. PowerPC implementation. -/* Copyright (C) 2002 Free Software Foundation +/* Copyright (C) 2002,2008 Free Software Foundation This file is part of libgcj. @@ -33,12 +33,11 @@ compare_and_swap (volatile obj_addr_t *addr, obj_addr_t old, obj_addr_t ret; __asm__ __volatile__ ( - "0: " _LARX "%0,0,%1 \n" + " " _LARX "%0,0,%1 \n" " xor. %0,%3,%0\n" - " bne 1f\n" + " bne $+12\n" " " _STCX "%2,0,%1\n" - " bne- 0b\n" - "1: \n" + " bne- $-16\n" : "=&r" (ret) : "r" (addr), "r" (new_val), "r" (old) : "cr0", "memory"); @@ -67,12 +66,11 @@ compare_and_swap_release (volatile obj_addr_t *addr, obj_addr_t old, __asm__ __volatile__ ("sync" : : : "memory"); __asm__ __volatile__ ( - "0: " _LARX "%0,0,%1 \n" + " " _LARX "%0,0,%1 \n" " xor. %0,%3,%0\n" - " bne 1f\n" + " bne $+12\n" " " _STCX "%2,0,%1\n" - " bne- 0b\n" - "1: \n" + " bne- $-16\n" : "=&r" (ret) : "r" (addr), "r" (new_val), "r" (old) : "cr0", "memory"); |