public inbox for
help / color / mirror / Atom feed
From: Iain D Sandoe <>
Subject: [gcc r13-4482] libstdc++, Darwin: Limit recursive mutex init to OS versions needing it.
Date: Sun,  4 Dec 2022 14:56:08 +0000 (GMT)	[thread overview]
Message-ID: <> (raw)

commit r13-4482-ga044c9d25972b22c6b4c8ec27f2de5fd622573cc
Author: Iain Sandoe <>
Date:   Sat Dec 3 17:09:35 2022 +0000

    libstdc++, Darwin: Limit recursive mutex init to OS versions needing it.
    The problem described in pr 51906 was fixed in the next OS release.  Limit the
    workaround to systems that need it.
    Signed-off-by: Iain Sandoe <>
            * config/os/bsd/darwin/os_defines.h
            (_GTHREAD_USE_RECURSIVE_MUTEX_INIT_FUNC): Limit use of this macro
            to OS versions that need it.

 libstdc++-v3/config/os/bsd/darwin/os_defines.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libstdc++-v3/config/os/bsd/darwin/os_defines.h b/libstdc++-v3/config/os/bsd/darwin/os_defines.h
index 38fdfb5f6f0..5b611d32e0d 100644
--- a/libstdc++-v3/config/os/bsd/darwin/os_defines.h
+++ b/libstdc++-v3/config/os/bsd/darwin/os_defines.h
@@ -39,8 +39,12 @@
 // implementation is not itself a weak definition).
 #define _GLIBCXX_WEAK_DEFINITION __attribute__ ((__weak__))
-// Static initializer macro is buggy in darwin, see libstdc++/51906
+// Static initializer macro is absent for Darwin < 11 and buggy in Darwin 11,
+// see libstdc++/51906.  Fixed in Darwin 12 (OS X 10.8).
 // Configure checks for nanosleep fail on Darwin, but nanosleep and
 // sched_yield are always available, so use them.

                 reply	other threads:[~2022-12-04 14:56 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:

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

  git send-email \ \ \ \ \

* 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).