public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: ibuclaw@gdcproject.org
To: gcc-patches@gcc.gnu.org
Cc: "jlaw@ventanamicro.com" <jlaw@ventanamicro.com>,
	"rguenther@suse.de" <rguenther@suse.de>
Subject: Re: [PATCH] d: Remove D-specific version definitions from target headers
Date: Sun, 23 Oct 2022 13:35:49 +0200 (CEST)	[thread overview]
Message-ID: <1090795211.238603.1666524949489@office.mailbox.org> (raw)
In-Reply-To: <20221017180844.3492051-1-ibuclaw@gdcproject.org>

> On 17/10/2022 20:08 CEST Iain Buclaw <ibuclaw@gdcproject.org> wrote:
> 
>  
> Hi,
> 
> This splits up the targetdm sources so that each file only handles one
> target platform.
> 
> Having all logic kept in the headers means that they could become out of
> sync when a new target is added (loongarch*-*-linux*) or accidentally
> broken if some headers in tm_file are omitted or changed about.
> 
> There might be an open bikeshed question as to appropriate names for
> some of the platform sources (kfreebsd-d.cc or kfreebsd-gnu-d.cc).
> 
> Bootstrapped and regression tested on x86_64-linux-gnu, and also built
> i686-cygwin, i686-gnu, i686-kfreebsd-gnu, i686-kopensolaris-gnu,
> x86_64-cygwin, x86_64-w64-mingw32 cross compilers, the dumps of all
> predefined version identifiers remain correct in all configurations.
> 
> OK?
> 

Ping?

I'll apply this tomorrow, but there is a general open question about whether taking logic out of target headers and putting it in config.gcc is the right approach moving forward for non C/C++ front-ends.  This is also relevant for Rust, which initially put all their target support definitions in headers, and have since removed the entire tangled mess that created.

Regards,
Iain.

  reply	other threads:[~2022-10-23 11:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-17 18:08 Iain Buclaw
2022-10-23 11:35 ` ibuclaw [this message]
2022-10-24  6:35   ` Richard Biener

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=1090795211.238603.1666524949489@office.mailbox.org \
    --to=ibuclaw@gdcproject.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jlaw@ventanamicro.com \
    --cc=rguenther@suse.de \
    /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).