This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/29375] gcc4.0.3 produces code that copies a structure twice



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]