]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: import/mt_list: support building with TCC
authorWilly Tarreau <w@1wt.eu>
Tue, 5 Nov 2024 14:25:31 +0000 (15:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Nov 2024 14:43:17 +0000 (15:43 +0100)
commit033db091fc375b62363235c061ba5838e965e606
tree7d530959b6f8a23f7b5b01fc08d7b64c730cf87d
parentd1adfd9fe41b0f9f67944eec07348213a7debbf3
BUILD: import/mt_list: support building with TCC

TCC is often convenient to quickly test builds, run CI tests etc. It has
limited thread support (e.g. no thread-local stuff) but that is often
sufficient for testing. TCC lacks __atomic_exchange_n() but has the
exactly equivalent __atomic_exchange(), and doesn't have any barrier.
For this reason we force the atomic_exchange to use the stricter SEQ_CST
mem ordering that allows to ignore the barrier.

[wt: that's upstream commit ca8b865 ("BUILD: support building with TCC")]
include/import/mt_list.h