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.

Reply via email to