]> granicus.if.org Git - strace/commitdiff
ia64: do not clobber r12 for raw syscalls
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 17 Dec 2018 17:30:24 +0000 (17:30 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 17 Dec 2018 17:30:24 +0000 (17:30 +0000)
According to
https://sourceware.org/ml/libc-alpha/2018-12/msg00470.html
GCC mainline now gives errors for an asm that clobbers the stack
pointer.

According to
https://gcc.gnu.org/ml/gcc-patches/2018-12/msg00932.html>
GCC previously ignored such a clobber; thus, this patch removes it
from the clobbers for ia64 raw syscalls.

* linux/ia64/raw_syscall.h (raw_syscall_0): Remove "r12" from clobbers.

linux/ia64/raw_syscall.h

index 78f344be96537fbe46d578ab0b25dbcb466a4b34..2c6a3fcd8ceb3a7d257eb842e8faf1476964345e 100644 (file)
@@ -23,7 +23,7 @@ raw_syscall_0(const kernel_ulong_t nr, kernel_ulong_t *err)
                             :
                             : "memory", "out0", "out1", "out2",
                               "out3", "out4", "out5", "out6", "out7",
-                              "r2", "r3", "r9", "r11", "r12", "r13",
+                              "r2", "r3", "r9", "r11", "r13",
                               "r14", "r16", "r17", "r18", "r19", "r20",
                               "r21", "r22", "r23", "r24", "r25", "r26",
                               "r27", "r28", "r29", "r30", "r31",