http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59219
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- But if you are using __builtin__xxx_chk you are using a builtin and thus are required to follow the builtins semantic. You can use __memcpy_chk instead (but you won't get the optimization to memcpy for unknown object sizes then).