public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Iain D Sandoe <iains@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/iains/heads/d-for-darwin)] d: Implement __traits(getTargetInfo) Date: Mon, 18 Oct 2021 15:54:02 +0000 (GMT) [thread overview] Message-ID: <20211018155402.54F9B385800D@sourceware.org> (raw) https://gcc.gnu.org/g:2bcaf641941a2df9a5571a3f39c568cca897b55d commit 2bcaf641941a2df9a5571a3f39c568cca897b55d 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"
next reply other threads:[~2021-10-18 15:54 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-18 15:54 Iain D Sandoe [this message] -- strict thread matches above, loose matches on Subject: below -- 2021-10-15 19:33 Iain D Sandoe 2021-10-13 8:30 Iain D Sandoe 2021-10-11 20:34 Iain D Sandoe 2020-12-21 20:36 Iain D Sandoe 2020-12-13 17:43 Iain D Sandoe
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=20211018155402.54F9B385800D@sourceware.org \ --to=iains@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).