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 : Make the Darwin code path more obvious (NFC).
Date: Fri, 17 Sep 2021 14:34:31 +0000 (GMT)	[thread overview]
Message-ID: <20210917143431.AA8B1385800F@sourceware.org> (raw)

https://gcc.gnu.org/g:8ab997f35fca804ac32e4767b82b5f61f487a951

commit 8ab997f35fca804ac32e4767b82b5f61f487a951
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Thu Dec 10 14:09:09 2020 +0000

    D, Darwin : Make the Darwin code path more obvious (NFC).
    
    Darwin passes version (Darwin) _and_ version(Posix) thus the
    AsmExternal and AsmX86*_Posix cases were already in effect.
    This just makes it more obvious (and also eases switching to
    ucontext for testing).

Diff:
---
 libphobos/libdruntime/core/thread/fiber.d | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/libphobos/libdruntime/core/thread/fiber.d b/libphobos/libdruntime/core/thread/fiber.d
index f4c04ce7358..64e90182596 100644
--- a/libphobos/libdruntime/core/thread/fiber.d
+++ b/libphobos/libdruntime/core/thread/fiber.d
@@ -76,6 +76,11 @@ private
             // fiber_switchContext does not support shadow stack from
             // Intel CET.  So use ucontext implementation.
         }
+        else version (OSX)
+        {
+            version = AsmExternal;
+            version = AsmX86_Posix;
+        }
         else
         {
             version = AsmExternal;
@@ -101,6 +106,11 @@ private
         {
             // let X32 be handled by ucontext swapcontext
         }
+        else version (OSX)
+        {
+            version = AsmExternal;
+            version = AsmX86_Posix;
+        }
         else
         {
             version = AsmExternal;


             reply	other threads:[~2021-09-17 14:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-17 14:34 Iain Buclaw [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-04-19 18:06 Iain Buclaw
2021-04-10 17:01 Iain Buclaw
2021-04-10 15:04 Iain Buclaw
2021-03-14 22:01 Iain Buclaw
2021-03-07 17:02 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=20210917143431.AA8B1385800F@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: 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).