MINOR: atomic: don't use ; to separate instruction on aarch64.
authorOlivier Houchard <cognet@ci0.org>
Wed, 23 Dec 2020 00:23:41 +0000 (01:23 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 8 Jan 2021 10:42:18 +0000 (11:42 +0100)
commit4c3508ca5875129dabdec6e8d570317564fd9c35
tree1a6155a501d4923d16fd8618ef5837aaa2819404
parent58094ce82f9f721d4e12e466ee1abb127daee15d
MINOR: atomic: don't use ; to separate instruction on aarch64.

The assembler on MacOS aarch64 interprets ; as the beginning of comments,
so it is not suitable for separating instructions in inline asm. Use \n
instead.

This should be backported to 2.3, 2.2, 2.1, 2.0 and 1.9.

(cherry picked from commit 63ee28185430cbf5bdce21f82484f7de70fe4654)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit ffc781b1eda8d4a66e899d3a40a37094ad4f674f)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 7c6634adcfbfa3c92bd8a51a688762df0969d8ce)
[cf: patch applied on common/hathreads.h because haproxy/atomic.h does not
     exist]
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/common/hathreads.h