diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-10-23 16:48:25 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-10-27 11:50:35 +0100 |
commit | d249ba878cc0c300cb8c39988a57fa4ca93f9088 (patch) | |
tree | afb898249ecbc7fd11a420ae4e5816926ae1e076 /gcc/d/dmd/target.h | |
parent | e419ede8915eeb879de3d9c026cd4213aaceb86a (diff) | |
download | gcc-d249ba878cc0c300cb8c39988a57fa4ca93f9088.zip gcc-d249ba878cc0c300cb8c39988a57fa4ca93f9088.tar.gz gcc-d249ba878cc0c300cb8c39988a57fa4ca93f9088.tar.bz2 |
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.
Diffstat (limited to 'gcc/d/dmd/target.h')
-rw-r--r-- | gcc/d/dmd/target.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/d/dmd/target.h b/gcc/d/dmd/target.h index d76a9f8..c34826a 100644 --- a/gcc/d/dmd/target.h +++ b/gcc/d/dmd/target.h @@ -28,7 +28,6 @@ struct TargetC { unsigned longsize; // size of a C 'long' or 'unsigned long' type unsigned long_doublesize; // size of a C 'long double' - unsigned criticalSectionSize; // size of os critical section }; struct TargetCPP @@ -98,7 +97,6 @@ public: // Type sizes and support. unsigned alignsize(Type *type); unsigned fieldalign(Type *type); - unsigned critsecsize(); Type *va_listType(const Loc &loc, Scope *sc); // get type of va_list int isVectorTypeSupported(int sz, Type *type); bool isVectorOpSupported(Type *type, TOK op, Type *t2 = NULL); |