summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-01-05 08:08:02 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-01-05 08:08:02 +0100
commitc28bd50282271116f81d72302f22dc3e41035f48 (patch)
treef809d119f94252af0717b86277f561515e50e13e /libc/sysdeps
parent739d2e9fe2929ab0ee83404f03f45702ab0f517a (diff)
mips: sync with GNU libc, fix mips64r6 n32 compilation
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/mips/sys/asm.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/mips/sys/asm.h b/libc/sysdeps/linux/mips/sys/asm.h
index 809bde406..7b0c92567 100644
--- a/libc/sysdeps/linux/mips/sys/asm.h
+++ b/libc/sysdeps/linux/mips/sys/asm.h
@@ -415,12 +415,19 @@ symbol = value
#if _MIPS_SIM == _MIPS_SIM_NABI32
# define PTR_ADD add
# define PTR_ADDI addi
-# define PTR_ADDU add /* no u */
-# define PTR_ADDIU addi /* no u */
# define PTR_SUB sub
# define PTR_SUBI subi
+#if !defined __mips_isa_rev || __mips_isa_rev < 6
+# define PTR_ADDU add /* no u */
+# define PTR_ADDIU addi /* no u */
# define PTR_SUBU sub /* no u */
# define PTR_SUBIU sub /* no u */
+#else
+# define PTR_ADDU addu
+# define PTR_ADDIU addiu
+# define PTR_SUBU subu
+# define PTR_SUBIU subu
+#endif
# define PTR_L lw
# define PTR_LA la
# define PTR_S sw