https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107676
Bug ID: 107676
Summary: Nonsensical docs for -mrelax-cmpxchg-loop
Product: gcc
Version: 12.2.1
Status: UNCONFIRMED
Keywords: documentation
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Target Milestone: ---
Target: x86*
g:4d281ff7ddd8f6365943c0a622107f92315bb8a6 added:
+@item -mrelax-cmpxchg-loop
+@opindex mrelax-cmpxchg-loop
+Relax cmpxchg loop by emitting an early load and compare before cmpxchg,
+execute pause if load value is not expected. This reduces excessive
+cachline bouncing when and works for all atomic logic fetch builtins
+that generates compare and swap loop.
1) "cachline" is a typo
2) "when" ... when what?
3) What does "atomic logic fetch builtins" mean?
4) "generates" should be "generate"
5) Is a "cmpxchg loop" the same as a "compare and swap loop"? Can we use the
same term consistently?