https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114800
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #1 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- (In reply to absoler from comment #0) > such code is compiled as: (gcc-13.2.0 -O2, regression [11/12/13/trunk]) The regression marker isn't true. It looks like the redundant zeroing has been there even in GCC 4.8.1. GCC 4.7 fails to compile the test case. And IIRC there is already an report complaining some redundant zeroing like this...