aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/ChangeLog
diff options
context:
space:
mode:
authorGCC Administrator <gccadmin@gcc.gnu.org>2021-04-06 00:16:43 +0000
committerGCC Administrator <gccadmin@gcc.gnu.org>2021-04-06 00:16:43 +0000
commitb1da991623341a2ecd97bf9034b93b0d63516517 (patch)
treed21a501a499b3fa3688b6e325681311d4c556eaf /gcc/d/ChangeLog
parentb07dd9b0d0e501a0083da79e2bca17041c007ec8 (diff)
downloadgcc-b1da991623341a2ecd97bf9034b93b0d63516517.zip
gcc-b1da991623341a2ecd97bf9034b93b0d63516517.tar.gz
gcc-b1da991623341a2ecd97bf9034b93b0d63516517.tar.bz2
Daily bump.
Diffstat (limited to 'gcc/d/ChangeLog')
-rw-r--r--gcc/d/ChangeLog40
1 files changed, 40 insertions, 0 deletions
diff --git a/gcc/d/ChangeLog b/gcc/d/ChangeLog
index 9c9c38d..93ec819 100644
--- a/gcc/d/ChangeLog
+++ b/gcc/d/ChangeLog
@@ -1,3 +1,43 @@
+2021-04-05 Iain Buclaw <ibuclaw@gdcproject.org>
+
+ PR d/99914
+ * d-lang.cc (d_init): Disable flag_weak_templates if no support for
+ weak or one-only symbols.
+ * d-tree.h (VAR_OR_FUNCTION_DECL_CHECK): New macro.
+ (DECL_INSTANTIATED): New macro.
+ (d_comdat_linkage): Remove declaration.
+ (d_linkonce_linkage): Remove declaration.
+ (set_linkage_for_decl): New declaration.
+ * decl.cc (DeclVisitor::visit (StructDeclaration *)): Replace call to
+ d_linkonce_linkage with setting DECL_INSTANTIATED.
+ (DeclVisitor::visit (ClassDeclaration *)): Likewise.
+ (DeclVisitor::visit (EnumDeclaration *)): Likewise.
+ (DeclVisitor::visit (InterfaceDeclaration *)): Remove call to
+ d_linkonce_linkage.
+ (get_symbol_decl): Call set_linkage_for_decl instead of
+ d_linkonce_linkage.
+ (d_finish_decl): Call set_linkage_for_decl.
+ (d_comdat_linkage): Made function static. Only set DECL_COMDAT for
+ DECL_INSTANTIATED decls.
+ (d_linkonce_linkage): Remove function.
+ (d_weak_linkage): New function.
+ (set_linkage_for_decl): New function.
+ * gdc.texi (Runtime Options): Rename -fno-weak to -fno-weak-templates,
+ update documentation of option.
+ * lang.opt (fweak): Rename option to ...
+ (fweak-templates): ... this. Update help string.
+ * modules.cc (get_internal_fn): Add Prot parameter. Set generated
+ function flag.
+ (build_internal_fn): Update call to get_internal_fn.
+ (build_dso_cdtor_fn): Likewise.
+ (register_moduleinfo): Call d_finish_decl on dso_slot_node and
+ dso_initialized_node.
+ * typeinfo.cc (TypeInfoVisitor::internal_reference): Call
+ set_linkage_for_decl instead of d_comdat_linkage.
+ (TypeInfoDeclVisitor::visit (TypeInfoDeclaration *)): Remove calls to
+ d_linkonce_linkage and d_comdat_linkage.
+ (get_cpp_typeinfo_decl): Likewise.
+
2021-04-03 Iain Buclaw <ibuclaw@gdcproject.org>
* dmd/MERGE: Merge upstream dmd 3b808e838.