]> git.ipfire.org Git - thirdparty/gcc.git/commit
d: Remove the d_critsec_size target hook.
authorIain Buclaw <ibuclaw@gdcproject.org>
Fri, 23 Oct 2020 14:48:25 +0000 (16:48 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Tue, 27 Oct 2020 10:50:35 +0000 (11:50 +0100)
commitd249ba878cc0c300cb8c39988a57fa4ca93f9088
treeafb898249ecbc7fd11a420ae4e5816926ae1e076
parente419ede8915eeb879de3d9c026cd4213aaceb86a
d: Remove the d_critsec_size target hook.

The allocation of mutex objects for synchronized statements has been
moved to the library as of merging druntime 58560d51.  All support code
in the compiler for getting the OS critical section size has been
removed along with it.

Reviewed-on: https://github.com/dlang/dmd/pull/11902
     https://github.com/dlang/druntime/pull/3248

gcc/ChangeLog:

* config/aarch64/aarch64-linux.h (GNU_USER_TARGET_D_CRITSEC_SIZE):
Remove.
* config/glibc-d.c (glibc_d_critsec_size): Likewise.
(TARGET_D_CRITSEC_SIZE): Likewise.
* config/i386/linux-common.h (GNU_USER_TARGET_D_CRITSEC_SIZE):
Likewise.
* config/sol2-d.c (solaris_d_critsec_size): Likewise.
(TARGET_D_CRITSEC_SIZE):  Likewise.
* doc/tm.texi.in (TARGET_D_CRITSEC_SIZE): Likewise.
* doc/tm.texi: Regenerate.

gcc/d/ChangeLog:

* dmd/MERGE: Merge upstream dmd bec5973b0.
* d-target.cc (Target::critsecsize): Remove.
* d-target.def: Remove d_critsec_size.

libphobos/ChangeLog:

* libdruntime/MERGE: Merge upstream druntime 58560d51.
14 files changed:
gcc/config/aarch64/aarch64-linux.h
gcc/config/glibc-d.c
gcc/config/i386/linux-common.h
gcc/config/sol2-d.c
gcc/d/d-target.cc
gcc/d/d-target.def
gcc/d/dmd/MERGE
gcc/d/dmd/idgen.c
gcc/d/dmd/statementsem.c
gcc/d/dmd/target.h
gcc/doc/tm.texi
gcc/doc/tm.texi.in
libphobos/libdruntime/MERGE
libphobos/libdruntime/rt/critical_.d