Re: All functions COMDAT on OSX

2015-11-17 Thread Marc Schütz via Digitalmars-d
On Monday, 16 November 2015 at 17:59:21 UTC, bitwise wrote: Yeah... I'm wondering how much chaos it would cause to fix this, because it's a blocking issue for fixing shared libs on OSX. To support shared libraries, I'de have to add a unique linux style global ctor/dtor to each module. LDC

Re: All functions COMDAT on OSX

2015-11-16 Thread bitwise via Digitalmars-d
On Monday, 16 November 2015 at 08:15:39 UTC, Walter Bright wrote: 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

Re: All functions COMDAT on OSX

2015-11-16 Thread Marc Schütz via Digitalmars-d
On Monday, 16 November 2015 at 14:37:33 UTC, bitwise wrote: On Monday, 16 November 2015 at 08:15:39 UTC, Walter Bright wrote: 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

Re: All functions COMDAT on OSX

2015-11-16 Thread bitwise via Digitalmars-d
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 I understand what it's

Re: All functions COMDAT on OSX

2015-11-16 Thread Walter Bright via Digitalmars-d
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

All functions COMDAT on OSX

2015-11-15 Thread bitwise via Digitalmars-d
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