提交 0ba35d69 编写于 作者: R Rich Felker

remove attribute((const)) from arm __pthread_self inline function

commit a603a75a did this for the
public pthread_self function but not the internal inline one.
上级 8d93cb57
#if ((__ARM_ARCH_6K__ || __ARM_ARCH_6ZK__) && !__thumb__) \ #if ((__ARM_ARCH_6K__ || __ARM_ARCH_6ZK__) && !__thumb__) \
|| __ARM_ARCH_7A__ || __ARM_ARCH_7R__ || __ARM_ARCH >= 7 || __ARM_ARCH_7A__ || __ARM_ARCH_7R__ || __ARM_ARCH >= 7
static inline __attribute__((const)) pthread_t __pthread_self() static inline pthread_t __pthread_self()
{ {
char *p; char *p;
__asm__( "mrc p15,0,%0,c13,c0,3" : "=r"(p) ); __asm__( "mrc p15,0,%0,c13,c0,3" : "=r"(p) );
...@@ -10,7 +10,7 @@ static inline __attribute__((const)) pthread_t __pthread_self() ...@@ -10,7 +10,7 @@ static inline __attribute__((const)) pthread_t __pthread_self()
#else #else
static inline __attribute__((const)) pthread_t __pthread_self() static inline pthread_t __pthread_self()
{ {
#ifdef __clang__ #ifdef __clang__
char *p; char *p;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册