[Bug c++/29375] gcc4.0.3 produces code that copies a structure twice
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Oct 7 04:05:00 GMT 2006
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-10-07 04:05 -------
(In reply to comment #2)
>
> Also, are you saying that the fix for PR23372 also brings us back to avoiding
> direct calls to memcpy?
No just the duplicated memcpy. not inlining memcpy is most likely not a bug,
just tunning differences.
If you want it inlined you should use -minline-all-stringops which just inlines
always most of standard C string functions including memcpy but you should do
timings before you do that because memcpy can be optimized for your target more
than what gets inlined. For an example it could use SSE registers to do the
copy if they exist.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29375
More information about the Gcc-bugs
mailing list