aboutsummaryrefslogtreecommitdiff
path: root/gcc/errors.c
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2021-03-14 18:11:14 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2021-03-28 14:47:35 +0200
commit65c001bfaf778e83ded451f94d2a0da528758dd8 (patch)
tree04d037e0ee151f92d1f9c47e2405ca8fe2fac994 /gcc/errors.c
parentd21001c793e97d88013d05226a8ea93a149726b1 (diff)
downloadgcc-65c001bfaf778e83ded451f94d2a0da528758dd8.zip
gcc-65c001bfaf778e83ded451f94d2a0da528758dd8.tar.gz
gcc-65c001bfaf778e83ded451f94d2a0da528758dd8.tar.bz2
d: Don't generate per-module wrapper for calling DSO constructor/destructor.
The static constructor/destructor list only ever has one function to call in it, so mark the gdc.dso_ctor and gdc.dso_dtor functions as static ctor/dtor directly instead. gcc/d/ChangeLog: * config-lang.in (gtfiles): Remove modules.cc. * modules.cc (struct module_info): Remove GTY marker. (static_ctor_list): Remove variable. (static_dtor_list): Remove variable. (register_moduleinfo): Directly set DECL_STATIC_CONSTRUCTOR on dso_ctor, and DECL_STATIC_DESTRUCTOR on dso_dtor. (d_finish_compilation): Remove static ctor/dtor handling. gcc/testsuite/ChangeLog: * gdc.dg/gdc270a.d: Removed. * gdc.dg/gdc270b.d: Removed.
Diffstat (limited to 'gcc/errors.c')
0 files changed, 0 insertions, 0 deletions