From: Chris Metcalf Date: Wed, 12 Nov 2014 20:00:06 +0000 (-0500) Subject: tile: avoid undefined behavior with regs[TREG_TP] etc X-Git-Tag: omap-for-v3.19/fixes-rc1~68^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce433f8090da6784cdee754defcbf325fc66f274;p=pandora-kernel.git 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 Signed-off-by: Chris Metcalf --- Reading git-diff-tree failed