]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hathreads: add support for gcc < 4.7
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jan 2018 17:49:31 +0000 (18:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 10 Jan 2018 06:51:56 +0000 (07:51 +0100)
commit1a69af6d3892fe1946bb8babb3044d2d26afd46e
tree60fae01e19bc3f94519956e74f9725eca3a275fe
parent29f690c94574666f0789af5254890c498011e2ed
MINOR: hathreads: add support for gcc < 4.7

Till now the use of __atomic_* gcc builtins required gcc >= 4.7. Since
some supported and quite common operating systems like CentOS 6 still
come with older versions (4.4) and the mapping to the older builtins
is reasonably simple, let's implement it.

This code is only used for gcc < 4.7. It has been quickly tested on a
machine using gcc 4.4.4 and provided expected results.

This patch should be backported to 1.8.
include/common/hathreads.h