[patch] Find if we are big endian at compile time
Rafael EspĂndola
rafael.espindola at gmail.com
Thu Apr 11 16:53:18 PDT 2013
On 11 April 2013 19:45, Rafael EspĂndola <rafael.espindola at gmail.com> wrote:
>> It's worth noting that __BYTE_ORDER__ and friends are only available
>> starting with GCC 4.6.
>
> gah, that kill the patch :-(
>
> On OS X gcc defines __LITTLE_ENDIAN__. Do you know if that is also
> true of other platforms?
I just checked on linux and it doesn't :-(
We could ifdef on the processor defines, but that would probably get
nasty. I will see what I can do without the ICE.
Thanks,
Rafael
More information about the llvm-commits
mailing list