[cfe-commits] r47850 - /cfe/trunk/Headers/mmintrin.h
Mike Stump
mrs at apple.com
Tue Mar 4 10:11:15 PST 2008
On Mar 3, 2008, at 7:41 PM, Eli Friedman wrote:
> Ah, I forgot... yeah, that sucks. Then I guess we should mark them
> "extern inline __attribute__((weak))"? Just plain inline means that
> we can't in general generate the right thing.
The most obvious thing to do would be to mark them static inline if
the language is not c99, and inline if it is. They don't need to be
weak.
>>> We don't ever want to depend on an external definition.
>>
>> :-) If they are always inline, it wouldn't be much of a
>> problem. :-) As I recall, the docs give us the latitude to reject
>> when someone wants the address of one of them.
>
> Where does that put us here? Should we attach some sort of
> "address_not_allowed" attribute to these functions?
I think always_inline might be able to serve that purpose.
More information about the cfe-commits
mailing list