https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108585
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- #include <cstddef> int foo(char *arr); int square(int num) { char arr[96]; __builtin_memset(arr, 0, sizeof(arr)); return foo(arr); } Also produces the rep stosq rather than the SSE stores.