We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
g_needs_dynamic_alloc
1 parent e74d263 commit 0878de7Copy full SHA for 0878de7
libc-top-half/musl/arch/wasm32/pthread_arch.h
@@ -1,9 +1,9 @@
1
uintptr_t __get_tp(void) {
2
#if _REENTRANT
3
int val;
4
- __asm__(".globaltype g_needs_dynamic_alloc, i32\n"
5
- "global.get __wasilibc_pthread_self\n"
6
- "local.set %0" : "=r" (val));
+ __asm__("global.get __wasilibc_pthread_self\n"
+ "local.set %0"
+ : "=r"(val));
7
return val;
8
#else
9
return 0;
0 commit comments