https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113282
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note -fno-strict-aliasing will allow the code to work the way you want it to work.
pinskia at gcc dot gnu.org via Gcc-bugs Mon, 08 Jan 2024 14:16:48 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113282
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note -fno-strict-aliasing will allow the code to work the way you want it to work.