[Bug middle-end/115802] Non-atomic load of static variable moved out of loop despite atomic fences

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jul 6 05:25:54 GMT 2024


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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I am not 100% sure this is a bug since cond_wait is known not to touch val even
though it has an atomic in it. If you mark it as noipa, then the GCC trunk gets
it "correct".


More information about the Gcc-bugs mailing list