about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/tile
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@mellanox.com>2016-07-08 10:30:59 -0400
committerChris Metcalf <cmetcalf@mellanox.com>2016-07-08 10:30:59 -0400
commit75a9e6a78844a27990287be6c73a140ae6d17b69 (patch)
treec79acb819dc635515f3f868787300d9de9e961cf /sysdeps/unix/sysv/linux/tile
parentbe4830bf94e1159b00c4cc97c084c6e4765a61ae (diff)
downloadglibc-75a9e6a78844a27990287be6c73a140ae6d17b69.tar.gz
glibc-75a9e6a78844a27990287be6c73a140ae6d17b69.tar.xz
glibc-75a9e6a78844a27990287be6c73a140ae6d17b69.zip
tile: only define __ASSUME_ALIGNED_REGISTER_PAIRS for 32-bit
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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/tile')
-rw-r--r--sysdeps/unix/sysv/linux/tile/kernel-features.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/tile/kernel-features.h b/sysdeps/unix/sysv/linux/tile/kernel-features.h
index 7511f7770a..9425e1c5e5 100644
--- a/sysdeps/unix/sysv/linux/tile/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/tile/kernel-features.h
@@ -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