Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b07263d

Browse files
committedAug 1, 2022
Remove g_needs_dynamic_alloc global
1 parent 15f0553 commit b07263d

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.