projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d93cb5
)
remove attribute((const)) from arm __pthread_self inline function
author
Rich Felker
<dalias@aerifal.cx>
Thu, 15 Oct 2015 04:20:50 +0000
(
00:20
-0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 15 Oct 2015 04:20:50 +0000
(
00:20
-0400)
commit
a603a75a72bb469c6be4963ed1b55fabe675fe15
did this for the
public pthread_self function but not the internal inline one.
arch/arm/pthread_arch.h
patch
|
blob
|
history
diff --git
a/arch/arm/pthread_arch.h
b/arch/arm/pthread_arch.h
index 7ab905806edd2b42a892bf3aadeeeac8a46075a1..5cbb209e7c1060fa004f7364db78cd4efc4dc932 100644
(file)
--- 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;