* include/posix-threads.h [alpha] (_Jv_ThreadSelf): Avoid a copy.
authorRichard Henderson <rth@redhat.com>
Wed, 27 Mar 2002 19:25:04 +0000 (11:25 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 27 Mar 2002 19:25:04 +0000 (11:25 -0800)
From-SVN: r51468

libjava/ChangeLog
libjava/include/posix-threads.h

index 878854b92201c238886063c2878c965c01606330..71c899fa1f3265c815e06dfd5600f332eb4b1ead 100644 (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.
index c74e26e330eca8823d4fbdc179112e54699904ed..e28da0b5aafbd55cce450609feb0672249e5625d 100644 (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;
 }