diff options
author | Richard Henderson <rth@redhat.com> | 2002-03-27 11:25:04 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-03-27 11:25:04 -0800 |
commit | 6ad46397949602249f7fbd5ff1fcf7fb8260123b (patch) | |
tree | bc283813465cfdb56d84fb1df3a272d921e4807e /libjava/include/posix-threads.h | |
parent | a3c5fa34cae7c29d5b902f8d4bdc0969eb70dd8f (diff) | |
download | gcc-6ad46397949602249f7fbd5ff1fcf7fb8260123b.zip gcc-6ad46397949602249f7fbd5ff1fcf7fb8260123b.tar.gz gcc-6ad46397949602249f7fbd5ff1fcf7fb8260123b.tar.bz2 |
* include/posix-threads.h [alpha] (_Jv_ThreadSelf): Avoid a copy.
From-SVN: r51468
Diffstat (limited to 'libjava/include/posix-threads.h')
-rw-r--r-- | libjava/include/posix-threads.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |