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: Fri, 17 Sep 2021 14:34:01 +0000 (GMT) [thread overview] Message-ID: <20210917143401.427BD3857C5B@sourceware.org> (raw) https://gcc.gnu.org/g:8f9a5380dded09e2d92667c48daa59f6acdd3178 commit 8f9a5380dded09e2d92667c48daa59f6acdd3178 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-09-17 14:34 UTC|newest] Thread overview: 14+ 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:05 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=20210917143401.427BD3857C5B@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: 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).