From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [IPv6:2001:67c:2050:0:465::202]) by sourceware.org (Postfix) with ESMTPS id 9272F3858D1E for ; Thu, 8 Sep 2022 10:48:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9272F3858D1E 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 [IPv6:2001:67c:2050:b231:465::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-202.mailbox.org (Postfix) with ESMTPS id 4MNbT139Skz9sQ2; Thu, 8 Sep 2022 12:48:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gdcproject.org; s=MBO0001; t=1662634117; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4S3KK22/Agt2Q2lBF5K5FV+aE1LT4Ebyz4TUXntHavI=; b=LDbbVzXe0DZhqZohTCRT3SsxZTiiXDIkjN6gTVMjhxdIFB9i10zQyErWjQ4KHR3VeLrVdg /ieTszIQvjZZ08HS/GHeszUjXCv4Wg5xyqyPb/mwgyMzP7nQZpCqxqOdGr4my9FvWwZnyN sht1rbfKNd/S4F5Aa9LkOdibFxZnkexkiDpLzRGC7+ayj0r99qysTDWZERg2VcAc4KKjIp k4ukJFOz7Ctkxy5ew6MaQWAsE5Rqi84gUDli4CEy28yoJzK0WuwRbiKdCR3bOKny24yuG8 BjnhcodlGZaDDFLkCyhbJ2TDHdBgnUdX9zKMfaY+JEWV2EnN6bEwF0lNo6OXeg== From: Iain Buclaw To: gcc-patches@gcc.gnu.org Cc: ro@CeBiTec.Uni-Bielefeld.DE, Iain Buclaw Subject: [committed] d: Include tm.h in all D target platform sources, remove memmodel.h Date: Thu, 8 Sep 2022 12:48:34 +0200 Message-Id: <20220908104834.297981-1-ibuclaw@gdcproject.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4MNbT139Skz9sQ2 X-Spam-Status: No, score=-13.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,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: Hi, This patch re-adds tm.h to all D-specific target platform sources, previously removed by an earlier change that fixed up tm_d.h generation. The tm.h header would pull in config/elfos.h, which defines TARGET_D_MINFO_SECTION needed for the D module support in the front-end to emit data to the correct section for the run-time library to pick up. The removal of it in r13-2385 caused a stage2 bootstrap failure on all Solaris targets, and others would have been affected as well. The memmodel header has also been removed as it is no longer required now tm_p.h is no longer used by these sources. Bootstrapped and regression tested on x86_64-linux-gnu and x86_64-pc-solaris2.11, committed to mainline. Regards, Iain --- gcc/ChangeLog: * config/darwin-d.cc: Include tm.h. * config/dragonfly-d.cc: Likewise. * config/freebsd-d.cc: Remove memmodel.h. * config/glibc-d.cc: Likewise. * config/netbsd-d.cc: Include tm.h. * config/openbsd-d.cc: Likewise. * config/sol2-d.cc: Likewise. --- gcc/config/darwin-d.cc | 1 + gcc/config/dragonfly-d.cc | 1 + gcc/config/freebsd-d.cc | 1 - gcc/config/glibc-d.cc | 1 - gcc/config/netbsd-d.cc | 1 + gcc/config/openbsd-d.cc | 1 + gcc/config/sol2-d.cc | 1 + 7 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/config/darwin-d.cc b/gcc/config/darwin-d.cc index e983883dba6..2ceebc49851 100644 --- a/gcc/config/darwin-d.cc +++ b/gcc/config/darwin-d.cc @@ -18,6 +18,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "tm.h" #include "tm_d.h" #include "d/d-target.h" #include "d/d-target-def.h" diff --git a/gcc/config/dragonfly-d.cc b/gcc/config/dragonfly-d.cc index d431638f7da..881c5e60b9a 100644 --- a/gcc/config/dragonfly-d.cc +++ b/gcc/config/dragonfly-d.cc @@ -18,6 +18,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "tm.h" #include "tm_d.h" #include "d/d-target.h" #include "d/d-target-def.h" diff --git a/gcc/config/freebsd-d.cc b/gcc/config/freebsd-d.cc index 189e4a69e78..c795ca2978c 100644 --- a/gcc/config/freebsd-d.cc +++ b/gcc/config/freebsd-d.cc @@ -18,7 +18,6 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" -#include "memmodel.h" #include "tm.h" #include "tm_d.h" #include "d/d-target.h" diff --git a/gcc/config/glibc-d.cc b/gcc/config/glibc-d.cc index 80ef27d19c6..1411f1973e5 100644 --- a/gcc/config/glibc-d.cc +++ b/gcc/config/glibc-d.cc @@ -19,7 +19,6 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" #include "tm.h" -#include "memmodel.h" #include "tm_d.h" #include "d/d-target.h" #include "d/d-target-def.h" diff --git a/gcc/config/netbsd-d.cc b/gcc/config/netbsd-d.cc index cd0c95568a1..dbabae7ab71 100644 --- a/gcc/config/netbsd-d.cc +++ b/gcc/config/netbsd-d.cc @@ -20,6 +20,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "tm.h" #include "tm_d.h" #include "d/d-target.h" #include "d/d-target-def.h" diff --git a/gcc/config/openbsd-d.cc b/gcc/config/openbsd-d.cc index 33c7e41ab62..bb3a3f28f6d 100644 --- a/gcc/config/openbsd-d.cc +++ b/gcc/config/openbsd-d.cc @@ -20,6 +20,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "tm.h" #include "tm_d.h" #include "d/d-target.h" #include "d/d-target-def.h" diff --git a/gcc/config/sol2-d.cc b/gcc/config/sol2-d.cc index 0ace79d5aae..cecb49cc826 100644 --- a/gcc/config/sol2-d.cc +++ b/gcc/config/sol2-d.cc @@ -18,6 +18,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" +#include "tm.h" #include "tm_d.h" #include "d/d-target.h" #include "d/d-target-def.h" -- 2.34.1