[Bug target/92462] [arm32] -ftree-pre makes a variable to be wrongly hoisted out
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 11 23:26:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92462
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Wilco from comment #1)
> Even if you fix the aliasing bugs, it won't emulate a byte-oriented cmpxchg
> correctly, there are bugs in the logic too.
More than that, it will never be atomic. You can't do byte wise cmpxchg for an
word size and think it will be atomic.
More information about the Gcc-bugs
mailing list