re PR java/35485 (libjava is disabled by default)

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.

From-SVN: r141335
This commit is contained in:
David Edelsohn
2008-10-24 02:44:26 +00:00
committed by David Edelsohn
parent dec014a92e
commit 887e6178d4
6 changed files with 83 additions and 11 deletions
+7 -9
View File
@@ -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");