* include/posix-threads.h [alpha] (_Jv_ThreadSelf): Avoid a copy.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Mar 2002 19:25:04 +0000 (19:25 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Mar 2002 19:25:04 +0000 (19:25 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51468 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 878854b..71c899f 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 c74e26e..e28da0b 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;
 }