public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Iain Buclaw <ibuclaw@gdcproject.org>
To: gcc-patches <gcc-patches@gcc.gnu.org>
Subject: [PATCH, d] Committed merge with upstream dmd
Date: Fri, 12 Apr 2019 06:30:00 -0000	[thread overview]
Message-ID: <CABOHX+eWdrVcnb=NoqhAe8ZNBb65Rs6a+BEtJKK9iY9HVN4xDQ@mail.gmail.com> (raw)

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

Hi,

This patch merges the D front-end implementation with dmd upstream c185f9df1.

Adds new virtual isVersionCondition, this is so that in the code
generation pass, a ConditionDeclaration's condition can be identified
without requiring a Visitor function.

Bootstrapped and regression tested on x86_64-linux-gnu.

Committed to trunk as r270300.

-- 
Iain
---

[-- Attachment #2: dmdc185f9df1.patch --]
[-- Type: text/x-patch, Size: 1066 bytes --]

diff --git a/gcc/d/dmd/MERGE b/gcc/d/dmd/MERGE
index 800be95e4e6..be0c5a50da2 100644
--- a/gcc/d/dmd/MERGE
+++ b/gcc/d/dmd/MERGE
@@ -1,4 +1,4 @@
-d7ed327edb0b01ad56e7e73e77b3401cd565675e
+c185f9df1789456c7d88d047f2df23dd784f1182
 
 The first line of this file holds the git revision number of the last
 merge done from the dlang/dmd repository.
diff --git a/gcc/d/dmd/cond.h b/gcc/d/dmd/cond.h
index 891969be48d..8e33b16a9da 100644
--- a/gcc/d/dmd/cond.h
+++ b/gcc/d/dmd/cond.h
@@ -39,6 +39,7 @@ public:
     virtual Condition *syntaxCopy() = 0;
     virtual int include(Scope *sc, ScopeDsymbol *sds) = 0;
     virtual DebugCondition *isDebugCondition() { return NULL; }
+    virtual VersionCondition *isVersionCondition() { return NULL; }
     virtual void accept(Visitor *v) { v->visit(this); }
 };
 
@@ -91,6 +92,7 @@ public:
     VersionCondition(Module *mod, unsigned level, Identifier *ident);
 
     int include(Scope *sc, ScopeDsymbol *sds);
+    VersionCondition *isVersionCondition() { return this; }
     void accept(Visitor *v) { v->visit(this); }
 };
 

             reply	other threads:[~2019-04-12  6:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-12  6:30 Iain Buclaw [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-03-16  9:54 [PATCH d]: " Iain Buclaw
2019-04-11 21:23 [PATCH, d] " Iain Buclaw
2019-03-31  4:40 Iain Buclaw
2019-03-26 14:45 Iain Buclaw
2019-03-12 14:17 Iain Buclaw
2019-03-01 10:22 Iain Buclaw
2019-01-21 21:17 Iain Buclaw
2019-01-22 10:08 ` Andreas Schwab
2019-01-22 21:31   ` Iain Buclaw
2019-01-14 10:39 Iain Buclaw
2018-12-17 18:33 Iain Buclaw
2018-12-02 11:48 Iain Buclaw
2018-11-04 23:34 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='CABOHX+eWdrVcnb=NoqhAe8ZNBb65Rs6a+BEtJKK9iY9HVN4xDQ@mail.gmail.com' \
    --to=ibuclaw@gdcproject.org \
    --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).