[Bug middle-end/115802] Non-atomic load of static variable moved out of loop despite atomic fences
securesneakers at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Jul 6 13:48:39 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115802
--- Comment #6 from Ivan Bodrov <securesneakers at gmail dot com> ---
Created attachment 58597
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58597&action=edit
Smaller, but non runnable example.
Full demo code for the above (can't be run, only shows code generation). Can be
compiled as:
$ gcc -O2 -c codegen-demo.c
More information about the Gcc-bugs
mailing list