https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108712
--- Comment #1 from Wilhelm M <klaus.doldinger64 at googlemail dot com> --- And using __asm__ __volatile__ ("" : : : "memory"); there is no optimization at all.
klaus.doldinger64 at googlemail dot com via Gcc-bugs Wed, 08 Feb 2023 00:44:04 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108712
--- Comment #1 from Wilhelm M <klaus.doldinger64 at googlemail dot com> --- And using __asm__ __volatile__ ("" : : : "memory"); there is no optimization at all.