Message ID | BD47FE75-B987-4F31-A83F-46E67B4605DE@sandoe-acoustics.co.uk |
---|---|
State | New |
Headers | show |
On 12/11/2011 10:44 AM, Iain Sandoe wrote:
> Note that there is no default for TARGET_BIG_ENDIAN in rs600.h - it is only defined in config/rs6000/sysv4.h.
Gah. And of course that's all I tested w/ linux.
Just change the TARGET_BIG_ENDIAN to BYTES_BIG_ENDIAN.
r~
Index: gcc/config/rs6000/darwin.h =================================================================== --- gcc/config/rs6000/darwin.h (revision 182204) +++ gcc/config/rs6000/darwin.h (working copy) @@ -39,6 +39,8 @@ #define TARGET_OBJECT_FORMAT OBJECT_MACHO +#define TARGET_BIG_ENDIAN 1 + /* Size of the Obj-C jump buffer. */ #define OBJC_JBLEN ((TARGET_64BIT) ? (26*2 + 18*2 + 129 + 1) : (26 + 18*2 + 129 + 1))