http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59009

--- Comment #16 from Peter Bergner <bergner at gcc dot gnu.org> ---
(In reply to dave.anglin from comment #15)
> As of revision 204772, there are still problems on hppa-linux.

Does the following patch fix them?  I don't know whether it creates more
problems than it solves, but worth a try.  I'll try on powerpc64-linux to see
if it breaks anything for us.


Index: sanitizer_common/sanitizer_platform_limits_posix.cc
===================================================================
--- sanitizer_common/sanitizer_platform_limits_posix.cc    (revision 204792)
+++ sanitizer_common/sanitizer_platform_limits_posix.cc    (working copy)
@@ -846,6 +846,7 @@ CHECK_TYPE_SIZE(nfds_t);

 CHECK_TYPE_SIZE(sigset_t);

+#ifdef SYSCALL_INTERCEPTION
 COMPILER_CHECK(sizeof(__sanitizer_sigaction) == sizeof(struct sigaction));
 // Can't write checks for sa_handler and sa_sigaction due to them being
 // preprocessor macros.
@@ -855,7 +856,6 @@ CHECK_STRUCT_SIZE_AND_OFFSET(sigaction, 
 CHECK_STRUCT_SIZE_AND_OFFSET(sigaction, sa_restorer);
 #endif

-#ifdef SYSCALL_INTERCEPTION
 #if SANITIZER_LINUX
 CHECK_TYPE_SIZE(__sysctl_args);
 CHECK_SIZE_AND_OFFSET(__sysctl_args, name);

Reply via email to