https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116884
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |alias Component|middle-end |tree-optimization --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So I think what is going on is we think p can be modified by the memset which is not true but we don't warn on the memset but only dealing with the strcpy. I have not looked into why we think that since p does not escape (strcpy arguments don't escape).