This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/65077] memcpy generates incorrect code with floating point numbers and -O1
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Feb 2015 13:25:13 +0000
- Subject: [Bug c/65077] memcpy generates incorrect code with floating point numbers and -O1
- Auto-submitted: auto-generated
- References: <bug-65077-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65077
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
You are writing beyond P in
(s)->u.f1 = p;
the testcase works with -m32 (where S is of the same size as P).