This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/49191] gcc.dg/memcpy-3.c FAILs on SPARC
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 8 Jun 2011 19:14:06 +0000
- Subject: [Bug middle-end/49191] gcc.dg/memcpy-3.c FAILs on SPARC
- Auto-submitted: auto-generated
- References: <bug-49191-4@http.gcc.gnu.org/bugzilla/>
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.