This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/55941] [4.8 Regression] Strange copy of double (in struct) to stack
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Feb 2013 08:55:05 +0000
- Subject: [Bug target/55941] [4.8 Regression] Strange copy of double (in struct) to stack
- Auto-submitted: auto-generated
- References: <bug-55941-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55941
--- Comment #6 from Uros Bizjak <ubizjak at gmail dot com> 2013-02-15 08:55:05 UTC ---
With a fix, testcase compiles to (-O2):
f:
addsd %xmm0, %xmm2
movapd %xmm2, %xmm0
ret
gcc-4.7 generates:
f:
addsd %xmm2, %xmm0
ret
I have opened PR56339 for this problem.