diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-10-15 00:20:50 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-10-15 00:20:50 -0400 |
commit | 0ba35d69c0e77b225ec640d2bd112ff6d9d3b2af (patch) | |
tree | a89987058fda3e5c234c274121fed6884abedab0 /arch/arm | |
parent | 8d93cb57754f1f81f8e15bb74afd1725cead45c2 (diff) | |
download | musl-0ba35d69c0e77b225ec640d2bd112ff6d9d3b2af.tar.gz musl-0ba35d69c0e77b225ec640d2bd112ff6d9d3b2af.tar.bz2 musl-0ba35d69c0e77b225ec640d2bd112ff6d9d3b2af.tar.xz musl-0ba35d69c0e77b225ec640d2bd112ff6d9d3b2af.zip |
remove attribute((const)) from arm __pthread_self inline function
commit a603a75a72bb469c6be4963ed1b55fabe675fe15 did this for the
public pthread_self function but not the internal inline one.
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/pthread_arch.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/pthread_arch.h b/arch/arm/pthread_arch.h index 7ab90580..5cbb209e 100644 --- a/arch/arm/pthread_arch.h +++ b/arch/arm/pthread_arch.h @@ -1,7 +1,7 @@ #if ((__ARM_ARCH_6K__ || __ARM_ARCH_6ZK__) && !__thumb__) \ || __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; __asm__( "mrc p15,0,%0,c13,c0,3" : "=r"(p) ); @@ -10,7 +10,7 @@ static inline __attribute__((const)) pthread_t __pthread_self() #else -static inline __attribute__((const)) pthread_t __pthread_self() +static inline pthread_t __pthread_self() { #ifdef __clang__ char *p; |