http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49191
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.06.08 19:12:29
Ever Confirmed|0 |1
--- Comment #11 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-06-08
19:12:29 UTC ---
> I get a warning on IA64 but none on X86. The warning is coming from
> c-typeck.c.
>
> x.c: In function 'foo':
> x.c:6:13: warning: cast increases required alignment of target type
> [-Wcast-align]
The warning is predicated on STRICT_ALIGNMENT being nonzero so this seems to be
a good idea. You could add -Werror to get an error and test the exit code.