[cfe-dev] Weak linkage for inline

Chris Lattner clattner at apple.com
Fri Jun 27 14:50:39 PDT 2008


On Jun 27, 2008, at 2:38 PM, Argiris Kirtzidis wrote:

> Chris Lattner wrote:
>>
>> On Jun 27, 2008, at 9:53 AM, Argiris Kirtzidis wrote:
>>> Can we change it to 'linkonce' until the correct semantics are in  
>>> place ?
>>> The issue with 'weak' is that the inliner leaves it untouched and  
>>> this
>>> section is produced in the assembly output:
>>>
>>>   .section    .llvm.linkonce.t._f,"ax", at progbits
>>>
>>> which is ELF specific, is this correct ?
>>
>> I'm not sure what you mean.  Are you not on an ELF system?  If not,  
>> the llvm backend for your target has a bug.
>
> LLVM produces that assembly output on windows too, and I assumed  
> that it's some ELF specific linkage.
> I should attribute that to a bug of the llvm backend, right ? Thank  
> you for your response.

Yep sounds like a bug in the windows/x86 backend.  Maybe Anton has an  
idea?  Anton, it is emitting the line above with 'weak' linkage symbols.

-Chris



More information about the cfe-dev mailing list