This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Partial libsanitizer aarch64 fix (PR sanitizer/64435)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Konstantin Serebryany <konstantin dot s dot serebryany at gmail dot com>
- Date: Mon, 19 Jan 2015 09:41:45 +0100
- Subject: [committed] Partial libsanitizer aarch64 fix (PR sanitizer/64435)
- Authentication-results: sourceware.org; auth=none
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
I've committed following cherry-pick from upstream. It is not a fully
solution for that PR, but does not hurt and let us move to other
libsanitizer build failures on aarch64 (and with those fixed/worked around
just to find out that asan doesn't work at all on aarch64).
2015-01-19 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/64435
* sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
upstream r223925.
--- libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc (revision 223924)
+++ libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc (revision 223925)
@@ -1005,8 +1005,12 @@ CHECK_SIZE_AND_OFFSET(__sysctl_args, new
CHECK_TYPE_SIZE(__kernel_uid_t);
CHECK_TYPE_SIZE(__kernel_gid_t);
+
+#if !defined(__aarch64__)
CHECK_TYPE_SIZE(__kernel_old_uid_t);
CHECK_TYPE_SIZE(__kernel_old_gid_t);
+#endif
+
CHECK_TYPE_SIZE(__kernel_off_t);
CHECK_TYPE_SIZE(__kernel_loff_t);
CHECK_TYPE_SIZE(__kernel_fd_set);
Jakub