d: Add darwin support for D language front-end
authorIain Buclaw <ibuclaw@gdcproject.org>
Sat, 28 Nov 2020 20:40:51 +0000 (21:40 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sun, 29 Nov 2020 21:10:00 +0000 (22:10 +0100)
commit4dce3b05ec96a5f76adec23dbe92b014f9db8554
treef1fab3a9ae5dd99563196f40134f9d337b28b8e4
parent2fdf75cb70d6bedd855205d6b05bbf6afac46730
d: Add darwin support for D language front-end

gcc/ChangeLog:

* config.gcc (*-*-darwin*): Set d_target_objs and target_has_targetdm.
* config/elfos.h (TARGET_D_MINFO_SECTION): New macro.
(TARGET_D_MINFO_START_NAME): New macro.
(TARGET_D_MINFO_END_NAME): New macro.
* config/t-darwin: Add darwin-d.o.
* doc/tm.texi: Regenerate.
* doc/tm.texi.in (D language and ABI): Add @hook for
TARGET_D_MINFO_SECTION, TARGET_D_MINFO_START_NAME, and
TARGET_D_MINFO_END_NAME.
* config/darwin-d.c: New file.

gcc/d/ChangeLog:

* d-target.def (d_minfo_section): New hook.
(d_minfo_start_name): New hook.
(d_minfo_end_name): New hook.
* modules.cc: Include d-target.h.
(register_moduleinfo): Update to use new targetdm hooks.
gcc/config.gcc
gcc/config/darwin-d.c [new file with mode: 0644]
gcc/config/elfos.h
gcc/config/t-darwin
gcc/d/d-target.def
gcc/d/modules.cc
gcc/doc/tm.texi
gcc/doc/tm.texi.in