Skip to content

Commit 0878de7

Browse files
committedAug 1, 2022
Remove g_needs_dynamic_alloc global
1 parent e74d263 commit 0878de7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎libc-top-half/musl/arch/wasm32/pthread_arch.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
uintptr_t __get_tp(void) {
22
#if _REENTRANT
33
int val;
4-
__asm__(".globaltype g_needs_dynamic_alloc, i32\n"
5-
"global.get __wasilibc_pthread_self\n"
6-
"local.set %0" : "=r" (val));
4+
__asm__("global.get __wasilibc_pthread_self\n"
5+
"local.set %0"
6+
: "=r"(val));
77
return val;
88
#else
99
return 0;

0 commit comments

Comments
 (0)
Please sign in to comment.