]> git.ipfire.org Git - thirdparty/gcc.git/commit
d: Remove D-specific version definitions from target headers
authorIain Buclaw <ibuclaw@gdcproject.org>
Mon, 17 Oct 2022 17:32:52 +0000 (19:32 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sat, 29 Oct 2022 07:16:47 +0000 (09:16 +0200)
commitca652f86f79855830762e2e7680b6807798437bf
tree0c046c8e7b074e434d369724a5bdfe8c69bc361e
parent724d3f926b94672de960dbe88fb699bbdd7fde97
d: Remove D-specific version definitions from target headers

This splits up the targetdm sources so that each file only handles one
target platform.

Having all logic kept in the headers means that they could become out of
sync when a new target is added (loongarch*-*-linux*) or accidentally
broken if some headers in tm_file are changed about.

gcc/ChangeLog:

* config.gcc: Split out glibc-d.o into linux-d.o, kfreebsd-d.o,
kopensolaris-d.o, and gnu-d.o.  Split out cygwin-d.o from winnt-d.o.
* config/arm/linux-eabi.h (EXTRA_TARGET_D_OS_VERSIONS): Remove.
* config/gnu.h (GNU_USER_TARGET_D_OS_VERSIONS): Remove.
* config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): Remove.
* config/i386/linux-common.h (EXTRA_TARGET_D_OS_VERSIONS): Remove.
* config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Remove.
* config/i386/t-cygming: Add cygwin-d.o.
* config/i386/winnt-d.cc (winnt_d_os_builtins): Only add
MinGW-specific version condition.
* config/kfreebsd-gnu.h (GNU_USER_TARGET_D_OS_VERSIONS): Remove.
* config/kopensolaris-gnu.h (GNU_USER_TARGET_D_OS_VERSIONS): Remove.
* config/linux-android.h (ANDROID_TARGET_D_OS_VERSIONS): Remove.
* config/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Remove.
* config/mips/linux-common.h (EXTRA_TARGET_D_OS_VERSIONS): Remove.
* config/t-glibc: Remove glibc-d.o, add gnu-d.o, kfreebsd-d.o,
kopensolaris-d.o.
* config/t-linux: Add linux-d.o.
* config/glibc-d.cc: Remove file.
* config/gnu-d.cc: New file.
* config/i386/cygwin-d.cc: New file.
* config/kfreebsd-d.cc: New file.
* config/kopensolaris-d.cc: New file.
* config/linux-d.cc: New file.
20 files changed:
gcc/config.gcc
gcc/config/arm/linux-eabi.h
gcc/config/gnu-d.cc [moved from gcc/config/glibc-d.cc with 65% similarity]
gcc/config/gnu.h
gcc/config/i386/cygwin-d.cc [new file with mode: 0644]
gcc/config/i386/cygwin.h
gcc/config/i386/linux-common.h
gcc/config/i386/mingw32.h
gcc/config/i386/t-cygming
gcc/config/i386/winnt-d.cc
gcc/config/kfreebsd-d.cc [new file with mode: 0644]
gcc/config/kfreebsd-gnu.h
gcc/config/kopensolaris-d.cc [new file with mode: 0644]
gcc/config/kopensolaris-gnu.h
gcc/config/linux-android.h
gcc/config/linux-d.cc [new file with mode: 0644]
gcc/config/linux.h
gcc/config/mips/linux-common.h
gcc/config/t-glibc
gcc/config/t-linux