We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86681b3 commit a23d145Copy full SHA for a23d145
ext/opcache/jit/tls/zend_jit_tls_darwin.c
@@ -38,7 +38,7 @@ zend_result zend_jit_resolve_tsrm_ls_cache_offsets(
38
39
#if defined(__x86_64__)
40
size_t *ti;
41
- __asm__(
+ __asm__ __volatile__(
42
"leaq __tsrm_ls_cache(%%rip),%0"
43
: "=r" (ti));
44
*module_offset = ti[2];
@@ -58,13 +58,13 @@ void *zend_jit_tsrm_ls_cache_address(
58
) {
59
60
if (tcb_offset) {
61
- char *base;
+ char *addr;
62
__asm__ __volatile__(
63
"movq %%gs:(%1), %0\n"
64
- : "=r" (base)
+ : "=r" (addr)
65
: "r" (tcb_offset)
66
);
67
-
+ return addr;
68
}
69
if (module_index != (size_t)-1 && module_offset != (size_t)-1) {
70
char *base;
0 commit comments