From 900fce31f4e2469a59cf215403f38c335dbfdda4 Mon Sep 17 00:00:00 2001 From: rth Date: Wed, 27 Mar 2002 19:25:04 +0000 Subject: * include/posix-threads.h [alpha] (_Jv_ThreadSelf): Avoid a copy. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51468 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 c74e26e330e..e28da0b5aaf 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.2.3