commit | 1a69af6d3892fe1946bb8babb3044d2d26afd46e | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Jan 04 18:49:31 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Jan 10 07:51:56 2018 +0100 |
tree | 60fae01e19bc3f94519956e74f9725eca3a275fe | |
parent | 29f690c94574666f0789af5254890c498011e2ed [diff] |
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.