From f00ad21f9735625bdafd29c11bc6db0491d8fe2a Mon Sep 17 00:00:00 2001 From: dje Date: Fri, 24 Oct 2008 02:44:26 +0000 Subject: 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 --- libjava/sysdep/powerpc/locks.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'libjava/sysdep') 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"); -- cgit v1.2.1