[cfe-commits] r47850 - /cfe/trunk/Headers/mmintrin.h

Chris Lattner clattner at apple.com
Tue Mar 4 16:51:42 PST 2008


On Mar 4, 2008, at 2:58 PM, Eli Friedman wrote:

> On Tue, Mar 4, 2008 at 2:57 PM, Chris Lattner <clattner at apple.com>  
> wrote:
>>
>> On Mar 4, 2008, at 2:44 PM, Eli Friedman wrote:
>>
>>
>>> Hmm, looking at it again, "extern inline __attribute__((weak))"  
>>> isn't
>>> quite right... we really want something like "extern inline
>>> __attribute__((linkonce))".
>>
>> If these are marked always_inline, they should never make it to the
>> linker.
>
> Does always_inline imply that it's illegal to take the address of the
> function?  The gcc docs don't seem to say that.

I'm not understanding the problem here.  If someone took the address  
(so it doesn't get inlined) clang should be emitting a weak or  
linkonce symbol (because it is marked inline) anyway.

-Chris



More information about the cfe-commits mailing list