Skip to content
Snippets Groups Projects
Commit a166fbca authored by Scott Wood's avatar Scott Wood Committed by Wolfgang Denk
Browse files

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: default avatarScott Wood <scottwood@freescale.com>
Acked-by: default avatarWolfgang Denk <wd@denx.de>
parent e1208c2f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment