kernel-ark/arch/tile
Chris Metcalf ce433f8090 tile: avoid undefined behavior with regs[TREG_TP] etc
Recent compilers warn about accesses to arrays past the end,
which is supported for pt_regs and sigcontext with the
intended alias past the end of regs[] to sp, tp, and lr
using TREG_SP, TREG_TP, and TREG_LR.

Make the intended usage explict by providing an anonymous
union of regs[56] on the one hand, and a short __regs[53]
on the other followed by the sp, tp, and lr fields, so the
aliasing is done explicitly and is visible to the compiler.

Reviewed-by: Jeff Epler <jepler@unpythonic.net>
Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
2014-11-13 09:39:26 -05:00
..
configs tgt: defconfig cleanup 2014-07-17 22:07:44 +02:00
gxio arch: tile: gxio: Export symbols for module using in 'mpipe.c' 2014-11-11 15:41:45 -05:00
include tile: avoid undefined behavior with regs[TREG_TP] etc 2014-11-13 09:39:26 -05:00
kernel arch: tile: kernel: kgdb.c: Use memcpy() instead of pointer copy one by one 2014-11-12 14:27:10 -05:00
kvm arch/tile/kvm: remove depends on CONFIG_EXPERIMENTAL 2013-01-17 12:11:26 -08:00
lib tile: include: asm: use 'long long' instead of 'u64' for atomic64_t and its related functions 2013-09-27 16:08:56 -04:00
mm tile: Use the more common pr_warn instead of pr_warning 2014-11-11 15:51:42 -05:00
Kbuild
Kconfig tilegx: Enable ARCH_SUPPORTS_ATOMIC_RMW 2014-10-02 10:19:33 -04:00
Kconfig.debug tile: remove DEBUG_EXTRA_FLAGS kernel config option 2013-09-03 14:52:17 -04:00
Makefile tile: remove DEBUG_EXTRA_FLAGS kernel config option 2013-09-03 14:52:17 -04:00