diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-06-18 15:02:24 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-06-18 15:02:24 +0000 |
commit | 2a070712fefa02c1550c2ff6fa0ae65b9c9cc30c (patch) | |
tree | 6b362a372564acbf57a94736a3d04f4b73bd0e27 /libpthread/nptl/sysdeps/sh/tls.h | |
parent | d1120c5fbb409d61b488adf61a72676d3671e44e (diff) | |
download | uClibc-alpine-2a070712fefa02c1550c2ff6fa0ae65b9c9cc30c.tar.bz2 uClibc-alpine-2a070712fefa02c1550c2ff6fa0ae65b9c9cc30c.tar.xz |
Renamed __self variable to __thread_self to avoid gcc arning due to shadowed variable
Diffstat (limited to 'libpthread/nptl/sysdeps/sh/tls.h')
-rw-r--r-- | libpthread/nptl/sysdeps/sh/tls.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpthread/nptl/sysdeps/sh/tls.h b/libpthread/nptl/sysdeps/sh/tls.h index 258e6ffb5..5e5ce12b0 100644 --- a/libpthread/nptl/sysdeps/sh/tls.h +++ b/libpthread/nptl/sysdeps/sh/tls.h @@ -115,9 +115,9 @@ typedef struct 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 \ |