This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29375] gcc4.0.3 produces code that copies a structure twice
- From: "deb at pixar dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2006 04:00:10 -0000
- Subject: [Bug c++/29375] gcc4.0.3 produces code that copies a structure twice
- References: <bug-29375-13259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from deb at pixar dot com 2006-10-07 04:00 -------
(In reply to comment #1)
> I think this was fixed in 4.0.4 by the patch which fixed PR 23372.
>
For various reasons, upgrading to 4.0.4 isn't an option at this time.
(a) How do I obtain the specific patch you are referring to and
(b) any idea if it would be safe to apply this patch to our current 4.0.3
source?
Also, are you saying that the fix for PR23372 also brings us back to avoiding
direct calls to memcpy?
That may be the bigger issue; the number of POD datastructures we're copying
around is probably very small. I was really trying to uncover why we were
calling mempcy directly when I noticed the second copy.
Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29375