]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
tile: only define __ASSUME_ALIGNED_REGISTER_PAIRS for 32-bit
authorChris Metcalf <cmetcalf@mellanox.com>
Fri, 8 Jul 2016 14:30:59 +0000 (10:30 -0400)
committerChris Metcalf <cmetcalf@mellanox.com>
Fri, 8 Jul 2016 14:30:59 +0000 (10:30 -0400)
The previous uses of this symbol were all in wordsize-32 code.
In commit eeddfa91cbb1 ("Consolidate off_t/off64_t syscall
argument passing") it was expanded to be used in pread/pwrite.
Accordingly, we only define it in 32-bit compilation modes now.
Both tilepro and tilegx32 follow this convention for the
kernel ABI.  tilegx64 follows it for passing 128-bit values,
but there are no such ABIs in the kernel.

ChangeLog
sysdeps/unix/sysv/linux/tile/kernel-features.h

index e0717516d97413a6eaae612d9d73bcceecc5bbd6..85f0bacc3ff6883e221fc0d5cfcb55ec2e26d856 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
+
+       * sysdeps/unix/sysv/linux/tile/kernel-features.h
+       (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
+
 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
 
        * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
index 7511f7770ae3ac3bcabed8950e0dd2c47b3fc49c..9425e1c5e543e938cdd338eb9b1a8d0461393fb7 100644 (file)
@@ -21,4 +21,6 @@
 
 /* Define this if your 32-bit syscall API requires 64-bit register
    pairs to start with an even-number register.  */
-#define __ASSUME_ALIGNED_REGISTER_PAIRS        1
+#ifndef _LP64
+# define __ASSUME_ALIGNED_REGISTER_PAIRS       1
+#endif