public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Iain Buclaw <ibuclaw@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/ibuclaw/heads/darwin)] D, Darwin : Update pthreads sizes. Date: Sun, 7 Mar 2021 17:02:35 +0000 (GMT) [thread overview] Message-ID: <20210307170235.CA143386100E@sourceware.org> (raw) https://gcc.gnu.org/g:2256a02b841112229c681b4bf95285c789f88176 commit 2256a02b841112229c681b4bf95285c789f88176 Author: Iain Sandoe <iain@sandoe.co.uk> Date: Fri Dec 11 00:37:57 2020 +0000 D, Darwin : Update pthreads sizes. The size of struct pthread changed at Darwin14 (macOS 10.10). Update the type bindings accordingly. libphobos/ChangeLog: * libdruntime/core/sys/posix/sys/types.d: Update sizes after macOS 10.10. Diff: --- libphobos/libdruntime/core/sys/posix/sys/types.d | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libphobos/libdruntime/core/sys/posix/sys/types.d b/libphobos/libdruntime/core/sys/posix/sys/types.d index abcea99019f..5ff9be4e1a5 100644 --- a/libphobos/libdruntime/core/sys/posix/sys/types.d +++ b/libphobos/libdruntime/core/sys/posix/sys/types.d @@ -899,9 +899,13 @@ else version (CRuntime_Musl) } else version (Darwin) { + import core.sys.darwin.config; version (D_LP64) { - enum __PTHREAD_SIZE__ = 8176; + static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10) + enum __PTHREAD_SIZE__ = 8176; + else + enum __PTHREAD_SIZE__ = 1168; enum __PTHREAD_ATTR_SIZE__ = 56; enum __PTHREAD_MUTEXATTR_SIZE__ = 8; enum __PTHREAD_MUTEX_SIZE__ = 56; @@ -913,7 +917,10 @@ else version (Darwin) } else { - enum __PTHREAD_SIZE__ = 4088; + static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_10) + enum __PTHREAD_SIZE__ = 4088; + else + enum __PTHREAD_SIZE__ = 596; enum __PTHREAD_ATTR_SIZE__ = 36; enum __PTHREAD_MUTEXATTR_SIZE__ = 8; enum __PTHREAD_MUTEX_SIZE__ = 40;
next reply other threads:[~2021-03-07 17:02 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-07 17:02 Iain Buclaw [this message] -- strict thread matches above, loose matches on Subject: below -- 2021-09-17 14:34 Iain Buclaw 2021-04-19 18:06 Iain Buclaw 2021-04-10 17:01 Iain Buclaw 2021-04-10 15:05 Iain Buclaw 2021-03-14 22:01 Iain Buclaw 2021-01-30 19:09 Iain Buclaw 2021-01-28 17:32 Iain Buclaw
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=20210307170235.CA143386100E@sourceware.org \ --to=ibuclaw@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: linkBe 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).