[cfe-dev] warnings in clang

Mike Stump mrs at apple.com
Mon Nov 17 13:19:36 PST 2008


On Nov 16, 2008, at 1:43 AM, Florian Weimer <fw at deneb.enyo.de> wrote:
> * Mike Stump:
>> It is really easy to fix, for example:
>>
>> PtrRef = 0;
>>
>> becomes:
>>
>>   uintptr_t x = 0;
>>   memcpy (&PtrRef, x, sizeof());
>>
>> suddenly, perfectly type safe, and, not an instruction larger, not a
>> single clock slower to boot.
>
> Unless you compile with -fno-builtins because that makes other code
> run quite a bit faster.

Odd, sounds like a very broken compiler if you have to compile clang  
with that.



More information about the cfe-dev mailing list