[cfe-dev] Weak linkage for inline

Argiris Kirtzidis akyrtzi at gmail.com
Fri Jun 27 14:38:50 PDT 2008

Chris Lattner wrote:
> On Jun 27, 2008, at 9:53 AM, Argiris Kirtzidis wrote:
>>> The correct comparison is with llvm-gcc -std=c99.  clang is in fact
>>> wrong here, but it's a bit more complicated.
>> 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.


More information about the cfe-dev mailing list