diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2021-05-13 19:43:09 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2021-05-13 21:18:18 +0100 |
commit | adab7b2bf42b469e51154a09a1b4fa0726a7073c (patch) | |
tree | 661c471556c06a3bf4f9a88ea7beeeb943bd3e0f /gcc/tree-sra.c | |
parent | 8aa8a2af8fdc2e0939c0d803bd45b45d251e1a3f (diff) | |
download | gcc-adab7b2bf42b469e51154a09a1b4fa0726a7073c.zip gcc-adab7b2bf42b469e51154a09a1b4fa0726a7073c.tar.gz gcc-adab7b2bf42b469e51154a09a1b4fa0726a7073c.tar.bz2 |
libsanitizer, Darwin : Handle missing __builtin_os_log_format.
GCC does not, currently, define __builtin_os_log_format, which
is needed by os/log.h. Do not include that header unless the
builtin is defined (since the header errors out on the same
condition). Provide a work-around solution to the missing API
provided via the header.
libsanitizer/ChangeLog:
* sanitizer_common/sanitizer_mac.cpp : Check for the
availability of __builtin_os_log_format before trying to
include a header depending on it.
(OS_LOG_DEFAULT): New.
(os_log_error): Define to a fall-back using an older API.
Diffstat (limited to 'gcc/tree-sra.c')
0 files changed, 0 insertions, 0 deletions