d: Make TARGET_D_MINFO_SECTION hooks in elfos.h the language default.
commiteaa59f085e8854a5cf082179c5f8c97e5efc9b6c
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 23 Oct 2022 12:09:17 +0000 (23 14:09 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sat, 29 Oct 2022 07:21:05 +0000 (29 09:21 +0200)
treec933e8ea332a9202bbeff15d05bd57d8bb959dcc
parentca652f86f79855830762e2e7680b6807798437bf
d: Make TARGET_D_MINFO_SECTION hooks in elfos.h the language default.

Removes the last of all TARGET_D_* macro definitions in common target
headers.  Now everything is either defined in the D language front-end,
or D-specific target headers.

gcc/ChangeLog:

* config/darwin-d.cc (TARGET_D_MINFO_START_NAME): Rename to ...
(TARGET_D_MINFO_SECTION_START): ...this.
(TARGET_D_MINFO_END_NAME): Rename to ...
(TARGET_D_MINFO_SECTION_END): ... this.
* config/elfos.h (TARGET_D_MINFO_SECTION): Remove.
(TARGET_D_MINFO_START_NAME): Remove.
(TARGET_D_MINFO_END_NAME): Remove.
* config/i386/cygwin-d.cc (TARGET_D_MINFO_SECTION): Remove.
(TARGET_D_MINFO_START_NAME): Remove.
(TARGET_D_MINFO_END_NAME): Remove.
* config/i386/winnt-d.cc (TARGET_D_MINFO_SECTION): Remove.
(TARGET_D_MINFO_START_NAME): Remove.
(TARGET_D_MINFO_END_NAME): Remove.
* doc/tm.texi: Regenerate.
* doc/tm.texi.in (TARGET_D_MINFO_START_NAME): Rename to ...
(TARGET_D_MINFO_SECTION_START): ...this.
(TARGET_D_MINFO_END_NAME): Rename to ...
(TARGET_D_MINFO_SECTION_END): ...this.

gcc/d/ChangeLog:

* d-target.def (d_minfo_section): Expand documentation of hook.
Default initialize to "minfo".
(d_minfo_start_name): Rename to ...
(d_minfo_section_start): ... this.  Default initialize to
"__start_minfo".
(d_minfo_end_name): Rename to ...
(d_minfo_section_end): ... this. Default initialize to "__stop_minfo".
* modules.cc (register_moduleinfo): Use new targetdm hook names.
gcc/config/darwin-d.cc
gcc/config/elfos.h
gcc/config/i386/cygwin-d.cc
gcc/config/i386/winnt-d.cc
gcc/d/d-target.def
gcc/d/modules.cc
gcc/doc/tm.texi
gcc/doc/tm.texi.in