[Bug c/108439] incorrect optimization with -O2, -O3, -Os

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 17 21:33:56 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108439

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Georg Müller from comment #1) 
> Also, this compiler warning and execution error is removed by compiling with
> -fno-strict-aliasing, but again, this does not look right.

Why do you think that is not correct? The aliasing violation causing undefined
behavior is obvious from the stores and loads that happen from the source.


More information about the Gcc-bugs mailing list