Put more stuff in the comdat used for variables with static init

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Sep 19 10:50:43 PDT 2014


On 19 September 2014 12:57, Reid Kleckner <rnk at google.com> wrote:
> I think we want this comdat grouping on mingw. Unlike C5/D5, the global
> variable is a real symbol that is a member of the comdat group. I think the
> check should still be !MachO, but the code that sets the comdat of the
> global and the initializer function needs to be sunk into the
> ItaniumCXXABI.cpp code.

Make sense. The attached patch does all the work from
lib/CodeGen/ItaniumCXXABI.cpp.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 3534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140919/6be26402/attachment.bin>


More information about the cfe-commits mailing list