summaryrefslogtreecommitdiffstats
path: root/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-06 21:51:41 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-06 21:51:41 +0000
commit9a668cb07b04ade0428a7ab91b6892b8822de7c5 (patch)
tree98d0382ba035de295335efe7490726b857c40956 /libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc
parent010ebb27536c2cdb4d0dba6f42380a48bd6a2b5c (diff)
downloadppe42-gcc-9a668cb07b04ade0428a7ab91b6892b8822de7c5.tar.gz
ppe42-gcc-9a668cb07b04ade0428a7ab91b6892b8822de7c5.zip
Use 64-bit system types for x86-64
PR sanitizer/59018 * sanitizer_common/sanitizer_platform_limits_linux.cc (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is defined. * sanitizer_common/sanitizer_platform_limits_posix.h (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is defined. (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__ is defined. (__sanitizer___kernel_gid_t): Likewise. (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__ is defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204482 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc')
-rw-r--r--libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc b/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc
index fbea5962c81..98702436c4f 100644
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc
@@ -31,7 +31,7 @@ namespace __sanitizer {
unsigned struct_io_event_sz = sizeof(struct io_event);
unsigned struct_iocb_sz = sizeof(struct iocb);
-#ifndef _LP64
+#if !defined(_LP64) && !defined(__x86_64__)
unsigned struct_kernel_stat64_sz = sizeof(struct stat64);
#else
unsigned struct_kernel_stat64_sz = 0;
OpenPOWER on IntegriCloud