From 86fa9a3a96c8f8cedd48b904ef4eb6bbfd9daaa4 Mon Sep 17 00:00:00 2001 From: rth Date: Mon, 11 Oct 2004 17:49:39 +0000 Subject: * include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*. (_Jv_ThreadSelf): Use __builtin_thread_pointer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88894 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/include/posix-threads.h | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'libjava/include') diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h index 01606df021f..ccb69ada1a2 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 -#define PAL_rduniq PAL_rdunique -#elif defined (__osf__) -#include -#else -#include -#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 -- cgit v1.2.3