This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[libgcj] streamline alpha thread bits


Applied mainline only.


r~


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

Index: include/posix-threads.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/include/posix-threads.h,v
retrieving revision 1.22
diff -c -p -d -u -r1.22 posix-threads.h
--- posix-threads.h	2002/03/26 11:26:13	1.22
+++ posix-threads.h	2002/03/27 19:22:45
@@ -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;
 }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]