xtensa: fix configuration of endianness
PATCH 1/1 xtensa: fix configuration of endianness
Since gcc 3.4.0 there is no option to specify the endianness for the Xtensa architecture, so the kernel relies on autodetecting the endianness and then defining the macros __XTENSA_E{B,L}__.
But this means that sparse's 'arch_big_endian' can't be used for the predefine.
So, do not predefine these macros anymore, they will transparently be set directly from the command line.
Reported-by Peter Zijlstra <[email protected]>
Signed-off-by Luc Van Oostenryck <[email protected]>
--- target-xtensa.c | 5 ----- 1 file changed, 5 deletions(-)
target-xtensa.c +0 -5
@@ -17,11 +17,6 @@ static void predefine_xtensa(const struct target *self) {predefine ("__XTENSA__" ,1 ,"1" );predefine ("__xtensa__" ,1 ,"1" ); - -if (arch_big_endian) -predefine ("__XTENSA_EB__" ,1 ,"1" ); -else -predefine ("__XTENSA_EL__" ,1 ,"1" ); }const struct target target_xtensa = {
Signature · 1 line
2.27.0