diff options
author | Richard Henderson <rth@redhat.com> | 2004-10-11 10:49:39 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-10-11 10:49:39 -0700 |
commit | 169bb110d313303d04b411f5251317a6745c8b73 (patch) | |
tree | 13bc252031e17943dccb30bfd350a760c75d22a9 /libjava/include | |
parent | 176ba83391a86ff69a205fafabc4782e6a067605 (diff) | |
download | gcc-169bb110d313303d04b411f5251317a6745c8b73.zip gcc-169bb110d313303d04b411f5251317a6745c8b73.tar.gz gcc-169bb110d313303d04b411f5251317a6745c8b73.tar.bz2 |
posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
* include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
(_Jv_ThreadSelf): Use __builtin_thread_pointer.
From-SVN: r88894
Diffstat (limited to 'libjava/include')
-rw-r--r-- | libjava/include/posix-threads.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h index 01606df..ccb69ad 100644 --- a/libjava/include/posix-threads.h +++ b/libjava/include/posix-threads.h @@ -241,23 +241,12 @@ _Jv_ThreadSelf (void) #ifdef __alpha__ -#ifdef __FreeBSD__ -#include <machine/pal.h> -#define PAL_rduniq PAL_rdunique -#elif defined (__osf__) -#include <machine/pal.h> -#else -#include <asm/pal.h> -#endif - -typedef unsigned long _Jv_ThreadId_t; +typedef void *_Jv_ThreadId_t; inline _Jv_ThreadId_t _Jv_ThreadSelf (void) { - register unsigned long id __asm__("$0"); - __asm__ ("call_pal %1" : "=r"(id) : "i"(PAL_rduniq)); - return id; + return __builtin_thread_pointer (); } #define JV_SELF_DEFINED |