Commit f35f108
committed
Note -latomic needed when using -mcx16
The ABA example relies on 16-byte atomic compare-and-swap operations,
which require the `-mcx16` compiler flag on x86-64 to enable the
corresponding instructions.
However, due to current limitations in GCC, 16-byte atomic operations
(e.g., `__atomic_load_16` and `__atomic_compare_exchange_16`) are
implemented via calls to `libatomic` on many platforms. This results
in linker errors unless `-latomic` is explicitly added.
To avoid confusion and ensure portability, this patch adds a footnote
to the LaTeX document explaining that `-latomic` must be linked when
using `-mcx16`. For more details, see:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=1046881 parent 68dae00 commit f35f108
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
959 | 959 | | |
960 | 960 | | |
961 | 961 | | |
962 | | - | |
| 962 | + | |
963 | 963 | | |
964 | 964 | | |
965 | 965 | | |
| |||
0 commit comments