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: Implement __traits(getTargetInfo)
Date: Mon, 19 Apr 2021 18:05:48 +0000 (GMT)	[thread overview]
Message-ID: <20210419180548.2D574395B452@sourceware.org> (raw)

https://gcc.gnu.org/g:9bf7b59bc8662e2ed5a2eb0c4e0116fbb44c5d22

commit 9bf7b59bc8662e2ed5a2eb0c4e0116fbb44c5d22
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Fri Dec 4 23:04:21 2020 +0100

    d: Implement __traits(getTargetInfo)

Diff:
---
 gcc/config/arm/arm-d.c | 11 ++++-------
 gcc/d/dmd/traits.c     |  1 +
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/gcc/config/arm/arm-d.c b/gcc/config/arm/arm-d.c
index 5f43ef9b179..485b1b4d20a 100644
--- a/gcc/config/arm/arm-d.c
+++ b/gcc/config/arm/arm-d.c
@@ -38,15 +38,12 @@ arm_d_target_versions (void)
       d_add_builtin_version ("ARM_Thumb");
     }
 
-  if (TARGET_HARD_FLOAT_ABI)
+  if (arm_float_abi == ARM_FLOAT_ABI_HARD)
     d_add_builtin_version ("ARM_HardFloat");
-  else
-    {
-      if (TARGET_SOFT_FLOAT)
-	d_add_builtin_version ("ARM_SoftFloat");
-      else if (TARGET_HARD_FLOAT)
+  else if (arm_float_abi == ARM_FLOAT_ABI_SOFT)
+    d_add_builtin_version ("ARM_SoftFloat");
+  else if (arm_float_abi == ARM_FLOAT_ABI_SOFTFP)
 	d_add_builtin_version ("ARM_SoftFP");
-    }
 
   if (TARGET_SOFT_FLOAT)
     d_add_builtin_version ("D_SoftFloat");
diff --git a/gcc/d/dmd/traits.c b/gcc/d/dmd/traits.c
index 5a9f58b79f5..98cb6e4d48b 100644
--- a/gcc/d/dmd/traits.c
+++ b/gcc/d/dmd/traits.c
@@ -31,6 +31,7 @@
 #include "module.h"
 #include "attrib.h"
 #include "parse.h"
+#include "target.h"
 #include "root/speller.h"
 #include "target.h"


             reply	other threads:[~2021-04-19 18:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-19 18:05 Iain Buclaw [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-09-17 14:34 Iain Buclaw
2021-04-10 17:00 Iain Buclaw
2021-04-10 15:04 Iain Buclaw
2021-03-14 22:00 Iain Buclaw
2021-03-07 17:01 Iain Buclaw
2021-01-30 19:08 Iain Buclaw
2021-01-28 17:31 Iain Buclaw
2021-01-11 11:39 Iain Buclaw
2020-12-22 13:40 Iain Buclaw
2020-12-09  9:51 Iain Buclaw
2020-12-05 23:47 Iain Buclaw
2020-12-04 23:08 Iain Buclaw
2020-12-04 22:04 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=20210419180548.2D574395B452@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).