diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-28 22:46:48 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-28 22:46:48 +0000 |
commit | 83e8a272526376e5f847819a255dcc89cc2ad09c (patch) | |
tree | faf724ba881bcb1a272116fb9caed07bfefc1341 /libjava/sysdep | |
parent | 7226fbce7b827c40d5f01fad00158585c019c18b (diff) | |
download | gcc-83e8a272526376e5f847819a255dcc89cc2ad09c.tar.gz |
* sysdep/powerpc/locks.h: Use 64-bit versions of primitives when
__LP64__ is defined rather than __powerpc64__.
(compare_and_swap): 'ret' is an obj_addr_t not just an int.
(compare_and_swap_release): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104746 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/sysdep')
-rw-r--r-- | libjava/sysdep/powerpc/locks.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/sysdep/powerpc/locks.h b/libjava/sysdep/powerpc/locks.h index 5a6a945e494..fe4f01ec182 100644 --- a/libjava/sysdep/powerpc/locks.h +++ b/libjava/sysdep/powerpc/locks.h @@ -11,7 +11,7 @@ details. */ #ifndef __SYSDEP_LOCKS_H__ #define __SYSDEP_LOCKS_H__ -#ifdef __powerpc64__ +#ifdef __LP64__ #define _LARX "ldarx " #define _STCX "stdcx. " #else @@ -30,7 +30,7 @@ inline static bool compare_and_swap (volatile obj_addr_t *addr, obj_addr_t old, obj_addr_t new_val) { - int ret; + obj_addr_t ret; __asm__ __volatile__ ( "0: " _LARX "%0,0,%1 \n" @@ -62,7 +62,7 @@ inline static bool compare_and_swap_release (volatile obj_addr_t *addr, obj_addr_t old, obj_addr_t new_val) { - int ret; + obj_addr_t ret; __asm__ __volatile__ ("sync" : : : "memory"); |