[Bug target/107676] Nonsensical docs for -mrelax-cmpxchg-loop

2022-11-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107676 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |13.0

[Bug target/107676] Nonsensical docs for -mrelax-cmpxchg-loop

2022-11-16 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107676 Alexander Monakov changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug target/107676] Nonsensical docs for -mrelax-cmpxchg-loop

2022-11-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107676 --- Comment #7 from CVS Commits --- The master branch has been updated by Alexander Monakov : https://gcc.gnu.org/g:85966f0d20baf50a767ac1110f537395441604a9 commit r13-4094-g85966f0d20baf50a767ac1110f537395441604a9 Author: Alexander Monakov D

[Bug target/107676] Nonsensical docs for -mrelax-cmpxchg-loop

2022-11-14 Thread wwwhhhyyy333 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107676 --- Comment #6 from Hongyu Wang --- (In reply to Andrew Pinski from comment #5) > (In reply to Jonathan Wakely from comment #4) > > I don't think __atomic_compare_exchange emits such a loop. This is about > > __atomic_fetch_xor and friends, whic

[Bug target/107676] Nonsensical docs for -mrelax-cmpxchg-loop

2022-11-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107676 --- Comment #5 from Andrew Pinski --- (In reply to Jonathan Wakely from comment #4) > I don't think __atomic_compare_exchange emits such a loop. This is about > __atomic_fetch_xor and friends, which do emit cmpxchg loops. But there are > four su

[Bug target/107676] Nonsensical docs for -mrelax-cmpxchg-loop

2022-11-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107676 --- Comment #4 from Jonathan Wakely --- I don't think __atomic_compare_exchange emits such a loop. This is about __atomic_fetch_xor and friends, which do emit cmpxchg loops. But there are four such functions to name.

[Bug target/107676] Nonsensical docs for -mrelax-cmpxchg-loop

2022-11-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107676 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2022-11-14 Status|UNCONFIRM

[Bug target/107676] Nonsensical docs for -mrelax-cmpxchg-loop

2022-11-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107676 --- Comment #2 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #0) > 3) What does "atomic logic fetch builtins" mean? >From the commit msg, it seems this means atomic_fetch_{or,xor,and,nand}. But out of context in the GCC man

[Bug target/107676] Nonsensical docs for -mrelax-cmpxchg-loop

2022-11-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107676 --- Comment #1 from Jonathan Wakely --- Is it really better to do a load and check rather than just hoist the first cmpxchg out of the loop, and add the pause in the loop if retrying?