summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sparc
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@gmail.com>2019-05-24 12:42:04 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2019-05-27 14:54:42 +0200
commitc2eaf6c30d930b65a8bcf5f912ef8873a6f4eb20 (patch)
tree66f52217922c4884a5424cb2297a9a1c2bb47cd1 /libc/sysdeps/linux/sparc
parent423e49023eeb9b93dcf335d7b03e86a44e584dc8 (diff)
sparc: remove asm constraint
uClibc-ng don't build with gcc 9.1 [1] due to a new check that "catch illegal asm constraint usage" [2]. gcc 9.1 print this error: "invalid hard register usage between earlyclobber operand and input operand" The asm constraint is present in uClibc since it support sparc (back in 2002)[3]. Note: There is no such constraint is Glibc counterpart code [4]. [1] https://gitlab.com/kubu93/toolchains-builder/-/jobs/205435757 [2] https://github.com/gcc-mirror/gcc/commit/b782636f28f5c378897c238081d28d7a4a6ca578 [3] https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=3b6d086531102b6d09ce852feb1e370d5dca3ce9 [4] +https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/sparc/sysdep.h;h=981b2a26b7a91093f821c97876 +e55bc4be2d9f8a;hb=HEAD
Diffstat (limited to 'libc/sysdeps/linux/sparc')
-rw-r--r--libc/sysdeps/linux/sparc/bits/syscalls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/sparc/bits/syscalls.h b/libc/sysdeps/linux/sparc/bits/syscalls.h
index 75af7a157..28edc0568 100644
--- a/libc/sysdeps/linux/sparc/bits/syscalls.h
+++ b/libc/sysdeps/linux/sparc/bits/syscalls.h
@@ -33,7 +33,7 @@
register long __g1 __asm__("g1") = sys_num; \
LOAD_ARGS_##nr(args) \
__asm__ __volatile__( __SYSCALL_STRING \
- : "=r" (__res), "=&r" (__o0) \
+ : "=r" (__res), "=r" (__o0) \
: "1" (__o0) ASM_ARGS_##nr, "r" (__g1) \
: __SYSCALL_CLOBBERS ); \
} \