This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/50569] Wrong code error: memcpy eliminated when it is needed
- From: "mikpe at it dot uu.se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Sep 2011 18:57:17 +0000
- Subject: [Bug c/50569] Wrong code error: memcpy eliminated when it is needed
- Auto-submitted: auto-generated
- References: <bug-50569-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50569
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpe at it dot uu.se
--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2011-09-29 18:57:17 UTC ---
Can you add a suitable main() to the test case to make it executable? I'd like
to check it on two strict-alignment platforms (ARMv5 and SPARC). A cursory
inspection of the generated assembly code hints that gcc-4.6-20110923 and
gcc-4.7-20110924 keep the memcpy() calls when targeting armv5tel-linux-gnueabi.