From 93901f6a5ff608d75f0b82803c058f84cb6c2870 Mon Sep 17 00:00:00 2001 From: Alvaro Date: Fri, 17 May 2013 20:10:30 +0100 Subject: [PATCH] LE support: remove mixed endianness support, this causes libraries to be built with wrong endianess --- toolchain/gcc/gcc/config/zpu/zpu.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/toolchain/gcc/gcc/config/zpu/zpu.h b/toolchain/gcc/gcc/config/zpu/zpu.h index 3855c6ff..46483a08 100755 --- a/toolchain/gcc/gcc/config/zpu/zpu.h +++ b/toolchain/gcc/gcc/config/zpu/zpu.h @@ -165,10 +165,6 @@ extern int target_flags; { "no-compare", -ZPU_COMPARE, "COMPARE insructions" },\ { "poppcrel", ZPU_POPPCREL, "POPPCREL insructions" },\ { "no-poppcrel", -ZPU_POPPCREL, "POPPCREL insructions" },\ - { "bytesbig", ZPU_BYTESBIG, "Bytes big endian" },\ - { "no-bytesbig", -ZPU_BYTESBIG, "Bytes big endian" },\ - { "bitsbig", ZPU_BITSBIG, "Bits big endian" },\ - { "no-bitsbig", -ZPU_BITSBIG, "Bits big endian" },\ { "memreg", ZPU_MEMREG, "Store r0-r3 in memory location 0-15" },\ { "no-memreg", -ZPU_MEMREG, "CALL _regpush and _regpop for r0-r3" },\ { "", TARGET_SWITCHES_DEFAULT, "" }\ @@ -186,9 +182,9 @@ extern const char *zpu_board_name; #define TARGET_VERSION fprintf (stderr, " (ZPU syntax)"); -#define BITS_BIG_ENDIAN TARGET_BITSBIG -#define BYTES_BIG_ENDIAN TARGET_BYTESBIG -#define WORDS_BIG_ENDIAN TARGET_BYTESBIG +#define BITS_BIG_ENDIAN 0 /* TARGET_BITSBIG */ +#define BYTES_BIG_ENDIAN 1 /* TARGET_BYTESBIG */ +#define WORDS_BIG_ENDIAN 1 /* TARGET_BYTESBIG */ #define BITS_PER_UNIT 8 #define BITS_PER_WORD 32 #define UNITS_PER_WORD 4 -- 2.11.4.GIT