diff options
author | Alexey Borzenkov <snaury@gmail.com> | 2014-06-24 04:39:41 +0400 |
---|---|---|
committer | Alexey Borzenkov <snaury@gmail.com> | 2014-06-24 04:39:41 +0400 |
commit | 657f92f635dc9370ddb96c4b724e9a1344a67483 (patch) | |
tree | 98fe965061b19e2e0aea5ffe45cbe0eb937f0e4f | |
parent | 8349c3f1168831a4ce7ad4903de3b131a98d9348 (diff) | |
download | greenlet-657f92f635dc9370ddb96c4b724e9a1344a67483.tar.gz |
Fix invalid aarch64 constraint
There doesn't seem to be a way to specify x0
as the result, so use "=r" to let compiler
choose an appropriate register. It would
likely choose x0 anyway.
-rw-r--r-- | platform/switch_aarch64_gcc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/switch_aarch64_gcc.h b/platform/switch_aarch64_gcc.h index d6a6a52..2fbc569 100644 --- a/platform/switch_aarch64_gcc.h +++ b/platform/switch_aarch64_gcc.h @@ -58,7 +58,7 @@ 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. */ - __asm__ volatile ("mov x0, #0" : "=x0" (err)); + __asm__ volatile ("mov %0, #0" : "=r" (err)); } __asm__ volatile ("ldr x29, %0" : : "m" (fp) :); __asm__ volatile ("" : : : REGS_TO_SAVE); |