[libgcj] streamline alpha thread bits
Richard Henderson
rth@redhat.com
Wed Mar 27 11:26:00 GMT 2002
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;
}
More information about the Gcc-patches
mailing list