On Nov 11 2019, Jim Wilson wrote:

> ../../../../gcc-git/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:1136:1:
> note: in expansion of macro ‘CHECK_SIZE_AND_OFFSET’
>  1136 | CHECK_SIZE_AND_OFFSET(ipc_perm, mode);
>       | ^~~~~~~~~~~~~~~~~~~~~

Looks like you are using an unreleased version of glibc.  This works
correctly with glibc 2.30.

As you have noticed, this will need to be corrected for all
architectures where the ipc_perm structure has been changed in commit
2f959dfe84, once glibc 2.31 has been released.  Care to file an llvm
issue about that?

> Incidentally, the
> libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h file
> has an obvious problem in the struct __sanitizer_ipc_perm definition,
> because it has an ifdef for __aarch64__ inside an ifdef for __sparc__,

That's __arch64__, not __aarch64__.

Andreas.

-- 
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply via email to