public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: "François-Xavier Coudert" <fxcoudert@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r14-5571] libsanitizer: fix build on darwin
Date: Sat, 18 Nov 2023 08:49:58 +0000 (GMT)	[thread overview]
Message-ID: <20231118084958.531973858D38@sourceware.org> (raw)

https://gcc.gnu.org/g:c2553dd3891efc928a85d4852f1b69afed9c6325

commit r14-5571-gc2553dd3891efc928a85d4852f1b69afed9c6325
Author: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Date:   Fri Nov 17 12:46:09 2023 +0100

    libsanitizer: fix build on darwin
    
    Upstream report of the issue at
    https://github.com/llvm/llvm-project/issues/72639
    
    libsanitizer/ChangeLog:
    
            * asan/asan_mac.cpp: Protect Apple blocks behind the
            MISSING_BLOCKS_SUPPORT macro.

Diff:
---
 libsanitizer/asan/asan_mac.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libsanitizer/asan/asan_mac.cpp b/libsanitizer/asan/asan_mac.cpp
index 5d5146e0cde..6252fa20d5e 100644
--- a/libsanitizer/asan/asan_mac.cpp
+++ b/libsanitizer/asan/asan_mac.cpp
@@ -139,9 +139,11 @@ typedef void (*dispatch_mach_handler_function_t)(void *context,
                                                  dispatch_mach_reason reason,
                                                  dispatch_mach_msg_t message,
                                                  mach_error_t error);
+#if !defined(MISSING_BLOCKS_SUPPORT)
 typedef void (^dispatch_mach_handler_t)(dispatch_mach_reason reason,
                                         dispatch_mach_msg_t message,
                                         mach_error_t error);
+#endif
 
 // A wrapper for the ObjC blocks used to support libdispatch.
 typedef struct {

                 reply	other threads:[~2023-11-18  8:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231118084958.531973858D38@sourceware.org \
    --to=fxcoudert@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).