svn commit: branches/uClibc-nptl/libpthread/nptl/sysdeps/sh
carmelo at uclibc.org
carmelo at uclibc.org
Wed Jun 18 15:02:31 UTC 2008
Author: carmelo
Date: 2008-06-18 08:02:24 -0700 (Wed, 18 Jun 2008)
New Revision: 22420
Log:
Renamed __self variable to __thread_self to avoid gcc arning due to shadowed variable
Modified:
branches/uClibc-nptl/libpthread/nptl/sysdeps/sh/tls.h
Changeset:
Modified: branches/uClibc-nptl/libpthread/nptl/sysdeps/sh/tls.h
===================================================================
--- branches/uClibc-nptl/libpthread/nptl/sysdeps/sh/tls.h 2008-06-18 14:49:27 UTC (rev 22419)
+++ branches/uClibc-nptl/libpthread/nptl/sysdeps/sh/tls.h 2008-06-18 15:02:24 UTC (rev 22420)
@@ -115,9 +115,9 @@
struct pthread *self = thread_self();
do not get optimized away. */
# define THREAD_SELF \
- ({ struct pthread *__self; \
- __asm ("stc gbr,%0" : "=r" (__self)); \
- __self - 1;})
+ ({ struct pthread *__thread_self; \
+ __asm ("stc gbr,%0" : "=r" (__thread_self)); \
+ __thread_self - 1;})
/* Magic for libthread_db to know how to do THREAD_SELF. */
# define DB_THREAD_SELF \
More information about the uClibc-cvs
mailing list