From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by sourceware.org (Postfix) with ESMTPS id 62F2A383E05E for ; Wed, 31 Aug 2022 12:10:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 62F2A383E05E Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=gdcproject.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gdcproject.org Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4MHjgZ561Bz9sTk; Wed, 31 Aug 2022 14:10:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gdcproject.org; s=MBO0001; t=1661947850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CoSGYSqbFD/c1qb1PIgegkDRlduI3q1bZS5USnQehY8=; b=c+QrNUoVW7KvRH50nGoFrY0FwNIc58CsCneMenIrXnSGd/eWKMeQkNg4fkpFDpfLIp2T5m XY715Ad69mUzfUtOupzcSZcCy/93JCn8epGkwax+4SybqyzxAa8+EwFcqJuDL2/gWb5veL YLw9ch5px79Qvm8o/sLTMHLTflMdJd4pSgMcqQQYilGAL9/37jVZjCqzSN5uXIQYKucKgD NYGyv9dnrNh01VCCLLfGnjuVar9EtbzTdvXgL4mdsVTModw4lducwCC/MAW3Q3VL9FQkW1 ngvHIjF0y5ndmicptxyo6BzIWNzcr24zwE1BkzIvBRB7KGFS93DigZHoIIMJoQ== Date: Wed, 31 Aug 2022 14:10:47 +0200 From: Iain Buclaw Subject: Re: [PATCH] d: Fix #error You must define PREFERRED_DEBUGGING_TYPE if DWARF is not supported (PR105659) To: Joseph Myers , Richard Biener Cc: GCC Patches References: <20220816211627.209433-1-ibuclaw@gdcproject.org> In-Reply-To: MIME-Version: 1.0 Message-Id: <1661946124.o8swlumpp1.astroid@pulse.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Excerpts from Joseph Myers's message of August 30, 2022 11:53 pm: > On Fri, 26 Aug 2022, Richard Biener via Gcc-patches wrote: >=20 >> I was hoping Joseph would chime in here - I recollect debugging this kin= d >> of thing and a thread about this a while back but unfortunately I do not >> remember the details here (IIRC some things get included where they >> better should not be). >=20 > See .= =20 > Is there some reason it's problematic to avoid having defaults.h or=20 > ${cpu_type}/${cpu_type}.h included in tm_d.h, and instead have tm_d.h onl= y=20 > include D-specific headers? >=20 In targets such as arm-elf, we still need to pull in definitions from ${cpu_type}/${cpu_type}-d.cc into default-d.cc. All I can think that might suffice is having D-specific prototype headers in all targets as ${cpu_type}/${cpu_type}-d.h. At this location: https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dblob;f=3Dgcc/config.gcc;h=3D110450= 8488818ff589dbc0890cf3fc475ae5977a;hb=3Drefs/heads/master#l560 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-d.h then tm_d_file=3D${cpu_type}/${cpu_type}-d.h fi Looks like RustFE ripped out their target support for now. https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dcommitdiff;h=3D1c8ebf6696550900832= 9b6e0425ffda407265263 https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dcommitdiff;h=3D3cd9342634e38100a9f= a6a4bec4d958ca3a4ab60 https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dcommitdiff;h=3Da15ee6c3e5d710556d1= 45e6af499b09993c4ee64 Iain.