diff mbox

[committed] Partial libsanitizer aarch64 fix (PR sanitizer/64435)

Message ID 20150119084145.GA1405@tucnak.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek Jan. 19, 2015, 8:41 a.m. UTC
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.


	Jakub
diff mbox

Patch

--- 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);