All functions COMDAT on OSX

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 16 00:15:40 PST 2015


On 11/15/2015 8:44 PM, bitwise wrote:
> https://issues.dlang.org/show_bug.cgi?id=15342
>
> DMD emits all functions as COMDAT on OSX.
>
> I'm guessing this was originally a workaround of some kind...does anybody know
> the story?
>
> Thanks,
>      Bit

It enables:

1. the linker to remove duplicates (happens with templates and other things)
2. the linker to remove unreferenced COMDATs


More information about the Digitalmars-d mailing list