]> git.sur5r.net Git - u-boot/commit
powerpc: fix 8xx and 82xx type-punning warnings with GCC 4.7
authorScott Wood <scottwood@freescale.com>
Sat, 18 May 2013 01:01:54 +0000 (20:01 -0500)
committerWolfgang Denk <wd@denx.de>
Tue, 11 Jun 2013 20:01:45 +0000 (22:01 +0200)
commita166fbca20e40937bf37cc18c389f68e995c1821
treeca90c9999014f7172aefabf257c9c0d2533aecf4
parente1208c2fe5e07f9a248cfbf9bbb212aa34ad2806
powerpc: fix 8xx and 82xx type-punning warnings with GCC 4.7

C99's strict aliasing rules are insane to use in low-level code such as a
bootloader, but as Wolfgang has rejected -fno-strict-aliasing in the
past, add a union so that 16-bit accesses can be performed.

Compile-tested only.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Acked-by: Wolfgang Denk <wd@denx.de>
arch/powerpc/cpu/mpc8260/commproc.c
arch/powerpc/cpu/mpc8260/cpu.c
arch/powerpc/cpu/mpc8260/i2c.c
arch/powerpc/cpu/mpc8260/serial_smc.c
arch/powerpc/cpu/mpc8260/spi.c
arch/powerpc/cpu/mpc8xx/cpu.c
arch/powerpc/include/asm/8xx_immap.h
arch/powerpc/include/asm/immap_8260.h
common/cmd_immap.c
examples/standalone/mem_to_mem_idma2intr.c
include/commproc.h