[patch][p22623] Don't get confused with __attribute__((weak)) in static inits

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Feb 20 08:09:52 PST 2015


On trunk we avoid the bug by explicitly putting the variable in a
comdat and using that to decide whether the init function should be in
a comdat or not.

The attached patch is a targeted fix for the 3.6 branch: Just avoid
using the IR level linkage since weak doesn't necessary mean that it
is safe to use comdats.

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


More information about the llvm-commits mailing list