diff options
author | Jason Madden <jamadden@gmail.com> | 2023-01-27 15:30:27 -0600 |
---|---|---|
committer | Jason Madden <jamadden@gmail.com> | 2023-01-27 15:33:20 -0600 |
commit | 616df6049cca1d94f783447ad164e331b3044ead (patch) | |
tree | 8a63f02b3cb9995ef4f02f1cdabb3272513386d0 /src/greenlet/platform/switch_aarch64_gcc.h | |
parent | 880825b7f02c4e22d64eef2e16a015c6a629fdcd (diff) | |
download | greenlet-616df6049cca1d94f783447ad164e331b3044ead.tar.gz |
Stop using 'const PyObject*, per @vstinner
See also https://github.com/python/cpython/issues/91768
Fixes #302
Also stops building the mac wheels we ship with Ofast and debugging assertions. That's not meant for production use.
Diffstat (limited to 'src/greenlet/platform/switch_aarch64_gcc.h')
-rw-r--r-- | src/greenlet/platform/switch_aarch64_gcc.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/greenlet/platform/switch_aarch64_gcc.h b/src/greenlet/platform/switch_aarch64_gcc.h index 0b9d556..31e09b9 100644 --- a/src/greenlet/platform/switch_aarch64_gcc.h +++ b/src/greenlet/platform/switch_aarch64_gcc.h @@ -26,7 +26,7 @@ slp_switch(void) { int err; void *fp; - register long *stackref, stsizediff; + long *stackref, stsizediff; __asm__ volatile ("" : : : REGS_TO_SAVE); __asm__ volatile ("str x29, %0" : "=m"(fp) : : ); __asm__ ("mov %0, sp" : "=r" (stackref)); @@ -59,6 +59,15 @@ slp_switch(void) stack space), and the simplest is to call a function that returns an unknown value (which happens to be zero), so the saved/restored value is unused. */ + /* XXX: This line produces warnings: + + value size does not match register size specified by the + constraint and modifier + + The suggested fix is to change %0 to %w0. + + TODO: Validate and change that. + */ __asm__ volatile ("mov %0, #0" : "=r" (err)); } __asm__ volatile ("ldr x29, %0" : : "m" (fp) :); |