https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120850
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Using an inline-asm to cause compiler barriers should be enough to stop gcc from optimizing the code away.
pinskia at gcc dot gnu.org via Gcc-bugs Fri, 27 Jun 2025 17:43:18 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120850
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Using an inline-asm to cause compiler barriers should be enough to stop gcc from optimizing the code away.