[PATCH] XCore target add __LITTLE_ENDIAN__ defined macro

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Feb 13 05:04:47 PST 2014


On 13 February 2014 05:43, Richard Osborne <richard at xmos.com> wrote:
> Hi Robert,
>
> It's hard to review this change without knowing a bit more context. In
> particular:
>
> * Is there some software in particular that relies on this macro?
> * Is this macro a standard macro? Do other targets define this macro?

It is very common. Maybe we should just define it in a central place
like we do with __BYTE_ORDER__?

CCing Joerg that might know if any architecture (other than pdp-11)
would not want __LITTLE_ENDIAN__ or __BIG_ENDIAN__ defined.

Cheers,
Rafael



More information about the llvm-commits mailing list