https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104723
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- We can only do that if we have a guarantee the callee doesn't care about whether it is automatic or static var and in the case where it isn't const also a guarantee it doesn't modify it. Both are the case for memcpy source of course.