kernel_optimize_test/arch/tile/include
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
..
arch tile: <arch/> header updates from upstream 2013-09-16 15:47:26 -04:00
asm tile: Use the more common pr_warn instead of pr_warning 2014-11-11 15:51:42 -05:00
gxio tile: improve gxio iorpc autogenerated code style 2013-09-16 15:47:20 -04:00
hv Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2013-09-06 11:14:33 -07:00
uapi tile: avoid undefined behavior with regs[TREG_TP] etc 2014-11-13 09:39:26 -05:00