This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libsanitizer: fix build on Mac 10.6
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Konstantin Serebryany <konstantin dot s dot serebryany at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Dodji Seketeli <dodji at redhat dot com>, Dmitry Vyukov <dvyukov at google dot com>, Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Date: Thu, 19 Dec 2013 11:14:15 +0100
- Subject: Re: libsanitizer: fix build on Mac 10.6
- Authentication-results: sourceware.org; auth=none
- References: <CAGQ9bdwjzFFvMtWmMRAj_WgBdfx2HXS2mUvi=5Z+W8UC7ixGnw at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Dec 19, 2013 at 02:12:44PM +0400, Konstantin Serebryany wrote:
> Please review a small patch (backport from upstream) for libsanitizer.
> We are having difficulties on our side and (likely) won't make a full
> libsanitizer merge until early Jan.
Ok.
> +2013-12-19 Kostya Serebryany <kcc@google.com>
> +
> + * sanitizer_common/sanitizer_platform_limits_posix.cc:
> + workaround for missing definition of EOWNERDEAD, backport
> + from upstream r196779.
> +
> 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
>
> * sanitizer_common/sanitizer_platform_limits_posix.h
> Index: libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
> ===================================================================
> --- libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
> (revision 206107)
> +++ libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
> (working copy)
> @@ -760,7 +760,12 @@
> unsigned IOCTL_TIOCSSERIAL = TIOCSSERIAL;
> #endif
>
> +// EOWNERDEAD is not present in some older platforms.
> +#if defined(EOWNERDEAD)
> extern const int errno_EOWNERDEAD = EOWNERDEAD;
> +#else
> + extern const int errno_EOWNERDEAD = -1;
> +#endif
> } // namespace __sanitizer
>
> COMPILER_CHECK(sizeof(__sanitizer_pthread_attr_t) >= sizeof(pthread_attr_t));
Jakub