[cfe-dev] Weak linkage for inline

Chris Lattner clattner at apple.com
Fri Jun 27 11:43:01 PDT 2008


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.

-Chris



More information about the cfe-dev mailing list