d: Use d_comdat_linkage on generated internal decl.
authorIain Buclaw <ibuclaw@gdcproject.org>
Mon, 30 Mar 2020 09:37:30 +0000 (11:37 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Tue, 31 Mar 2020 13:54:45 +0000 (15:54 +0200)
commit48742e02d7136e60e8e91631d76403d56e4eee09
treeea5c2c5b75c2484ac8d956b7e933e28a12cfae73
parent1165109b401377a2b8028a7beaa9f50684649f2b
d: Use d_comdat_linkage on generated internal decl.

This adds weak linkage to internal TypeInfo data on top of the existing
DECL_COMDAT, which helps in the unlikely event that two of the same
TypeInfo data ends up in multiple places.

gcc/d/ChangeLog:

* typeinfo.cc (TypeInfoVisitor::internal_reference): Call
d_comdat_linkage on generated decl.
gcc/d/ChangeLog
gcc/d/typeinfo.cc