[Bug middle-end/56888] memcpy implementation optimized as a call to memcpy

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 29 13:57:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888

--- Comment #26 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Janosch Rux from comment #24)
> When upgrading our build environment we ran into this. We worked around the
> way mentioned in the comments.
> 
> No Problems with: 4.6.3 
> Broken with:  4.8.2

-ftree-loop-distribute-patterns is on by default at -O3 since GCC 4.6, a
change from GCC 4.5 and before which needed explicit enabling of this.

More recent GCC may have become more clever in recognizing them though
(for example non-zero memset support is quite recent).



More information about the Gcc-bugs mailing list