From 6ad46397949602249f7fbd5ff1fcf7fb8260123b Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 27 Mar 2002 11:25:04 -0800 Subject: * include/posix-threads.h [alpha] (_Jv_ThreadSelf): Avoid a copy. From-SVN: r51468 --- libjava/include/posix-threads.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libjava/include') diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h index c74e26e..e28da0b 100644 --- a/libjava/include/posix-threads.h +++ b/libjava/include/posix-threads.h @@ -256,8 +256,8 @@ typedef unsigned long _Jv_ThreadId_t; inline _Jv_ThreadId_t _Jv_ThreadSelf (void) { - unsigned long id; - __asm__ ("call_pal %1\n\tmov $0, %0" : "=r"(id) : "i"(PAL_rduniq) : "$0"); + register unsigned long id __asm__("$0"); + __asm__ ("call_pal %1" : "=r"(id) : "i"(PAL_rduniq)); return id; } -- cgit v1.1