aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-07-25 01:22:30 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-07-27 23:44:34 +0200
commit26b99f23652e4dd639ab6ea4f3a891c4fd752446 (patch)
tree73cd3f8db880ba081c8836f9e35d38eb45e9bbc8
parent35e691359a4cbe675efc366d1384f09d7b33bb43 (diff)
downloadsparse-26b99f23652e4dd639ab6ea4f3a891c4fd752446.tar.gz
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 <peterz@infradead.org> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--target-xtensa.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/target-xtensa.c b/target-xtensa.c
index 26bda47f..3620b4a3 100644
--- a/target-xtensa.c
+++ b/target-xtensa.c
@@ -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 = {