This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[libgcj] streamline alpha thread bits
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Wed, 27 Mar 2002 11:26:39 -0800
- Subject: [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;
}