[git commit] mips: only define SYSCALL_ALIGN_64BIT for O32 ABIs

Mike Frysinger vapier at gentoo.org
Mon Apr 1 08:49:24 UTC 2013


commit: http://git.uclibc.org/uClibc/commit/?id=9f9d2dea175bc0ea884bd4815acf2004b859c2b5
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

The 64bit register alignment issue only affects the O32 ABI, so wrap
the define accordingly.  We don't want this being used for N32 ABIs.

This doesn't directly affect the N64 ABI since these files wouldn't
even be compiled for those targets (no need for the 32bit/64bit shim).

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 .../sysdeps/linux/mips/bits/uClibc_arch_features.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libc/sysdeps/linux/mips/bits/uClibc_arch_features.h b/libc/sysdeps/linux/mips/bits/uClibc_arch_features.h
index 6e564b1..f81d1f0 100644
--- a/libc/sysdeps/linux/mips/bits/uClibc_arch_features.h
+++ b/libc/sysdeps/linux/mips/bits/uClibc_arch_features.h
@@ -12,7 +12,11 @@
 #define __UCLIBC_MMAP_HAS_6_ARGS__
 
 /* does your target align 64bit values in register pairs ? (32bit arches only) */
+#if _MIPS_SIM == _ABIO32
 #define __UCLIBC_SYSCALL_ALIGN_64BIT__
+#else
+#undef __UCLIBC_SYSCALL_ALIGN_64BIT__
+#endif
 
 /* does your target have a broken create_module() ? */
 #undef __UCLIBC_BROKEN_CREATE_MODULE__


More information about the uClibc-cvs mailing list