]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
d: Include tm.h in all D target platform sources, remove memmodel.h
authorIain Buclaw <ibuclaw@gdcproject.org>
Thu, 8 Sep 2022 10:29:32 +0000 (12:29 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Thu, 8 Sep 2022 10:44:52 +0000 (12:44 +0200)
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.

The memmodel header has also been removed as it is no longer required
now tm_p.h is no longer used by these sources.

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
gcc/config/dragonfly-d.cc
gcc/config/freebsd-d.cc
gcc/config/glibc-d.cc
gcc/config/netbsd-d.cc
gcc/config/openbsd-d.cc
gcc/config/sol2-d.cc

index e983883dba63850d6abe22ff89c5c922df574b09..2ceebc49851467433897cdade397295f44b66c61 100644 (file)
@@ -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"
index d431638f7da3473ced7f92c4ba3e36fa96fae273..881c5e60b9a1a3ec756114166cf45dace97b4356 100644 (file)
@@ -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"
index 189e4a69e78a3356be3986851b891dc459769323..c795ca2978cbf3be8ac63ac0a74c34119271570f 100644 (file)
@@ -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"
index 80ef27d19c6c8fd87ffb8930ae7cd42c7c115ed2..1411f1973e548045fc7da898cf5a1ed2626f68db 100644 (file)
@@ -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"
index cd0c95568a1eb75ab1913e4fae12bb51b613a027..dbabae7ab71f5bd99c7fb97976e7cdd04ad7c9c7 100644 (file)
@@ -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"
index 33c7e41ab62df5d9663ada4ec756ef018db80b22..bb3a3f28f6d9d1aa5d07b7b5a670257df868548b 100644 (file)
@@ -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"
index 0ace79d5aae476cc3e3c617580a6db45a1c79869..cecb49cc8269f7d14204ebcb72d5a8b2cd3a5bc6 100644 (file)
@@ -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"