public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
To: Iain Buclaw via Gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [committed] d: Merge upstream dmd 52844d4b1, druntime dbd0c874, phobos 896b1d0e1.
Date: Wed, 16 Feb 2022 23:45:19 +0100	[thread overview]
Message-ID: <yddtucyh1mo.fsf@CeBiTec.Uni-Bielefeld.DE> (raw)
In-Reply-To: <2133903615.27711.1645006847073@office.mailbox.org> (Iain Buclaw via Gcc-patches's message of "Wed, 16 Feb 2022 11:20:47 +0100 (CET)")

[-- Attachment #1: Type: text/plain, Size: 738 bytes --]

Hi Iain,

> This patch merges the D front-end implementation with upstream dmd
> 52844d4b1, as well as the D runtime libraries with druntime dbd0c874,
> and phobos 896b1d0e1, including the latest features and bug-fixes ahead of the 2.099.0-beta1 release.

this patch broke Solaris bootstrap:

/vol/gcc/src/hg/master/local/libphobos/libdruntime/core/sys/posix/sys/ipc.d:193:5: error: static assert:  "Unsupported platform"
  193 |     static assert(false, "Unsupported platform");
      |     ^

The attached patch fixes this.  Tested on i386-pc-solaris2.11 and
sparc-sun-solaris2.11.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: sol2-ipc.patch --]
[-- Type: text/x-patch, Size: 1079 bytes --]

diff --git a/libphobos/libdruntime/core/sys/posix/sys/ipc.d b/libphobos/libdruntime/core/sys/posix/sys/ipc.d
--- a/libphobos/libdruntime/core/sys/posix/sys/ipc.d
+++ b/libphobos/libdruntime/core/sys/posix/sys/ipc.d
@@ -188,6 +188,31 @@ else version (DragonFlyBSD)
     enum IPC_SET        = 1;
     enum IPC_STAT       = 2;
 }
+else version (Solaris)
+{
+    struct ipc_perm
+    {
+	uid_t   uid;
+	gid_t   gid;
+	uid_t   cuid;
+	gid_t   cgid;
+	mode_t  mode;
+	uint    seq;
+	key_t   key;
+        version (D_LP64) {} else
+	    int[4] pad;
+    }
+
+    enum IPC_CREAT      = 0x0200;
+    enum IPC_EXCL       = 0x0400;
+    enum IPC_NOWAIT     = 0x0800;
+
+    enum key_t IPC_PRIVATE = 0;
+
+    enum IPC_RMID       = 10;
+    enum IPC_SET        = 11;
+    enum IPC_STAT       = 12;
+}
 else
 {
     static assert(false, "Unsupported platform");
@@ -233,6 +258,10 @@ else version (CRuntime_UClibc)
 {
     key_t ftok(const scope char*, int);
 }
+else version (Solaris)
+{
+    key_t ftok(const scope char*, int);
+}
 else
 {
     static assert(false, "Unsupported platform");

  reply	other threads:[~2022-02-16 22:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-16 10:20 Iain Buclaw
2022-02-16 22:45 ` Rainer Orth [this message]
2022-02-18 17:55   ` Iain Buclaw
2022-02-19 13:53     ` Rainer Orth

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=yddtucyh1mo.fsf@CeBiTec.Uni-Bielefeld.DE \
    --to=ro@cebitec.uni-bielefeld.de \
    --cc=gcc-patches@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).