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>
Wed, 30 Nov 2022 21:15:47 +0000 (22:15 +0100)
commit490b0c669d0f8fb14931cdcf7f5318c6a842c666
treec5d9f8b2426e96ba629ac6f031c585f26db40016
parent2909464c405b79559c5507cde382df05d2d2fa41
d: Include tm.h in all D target platform sources, remove memmodel.h

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.

(cherry picked from commit a7852bd30a19d29ff7986869453786d460d17877)
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
This page took 0.065004 seconds and 6 git commands to generate.