* include/posix-threads.h [alpha] (_Jv_ThreadSelf): Avoid a copy.

From-SVN: r51468
This commit is contained in:
Richard Henderson 2002-03-27 11:25:04 -08:00 committed by Richard Henderson
parent a3c5fa34ca
commit 6ad4639794
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-03-27 Richard Henderson <rth@redhat.com>
* include/posix-threads.h [alpha] (_Jv_ThreadSelf): Avoid a copy.
2002-03-25 Andrew Haley <aph@cambridge.redhat.com>, Hans Boehm <Hans_Boehm@hp.com>
* include/dwarf2-signal.h (MAKE_THROW_FRAME): Add for IA-64.

View File

@ -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;
}