From d966f1497c7912798a0495d1a7b78ceb301cae39 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 10 Sep 2020 09:31:50 +0200 Subject: [PATCH] BUILD: intops: on x86_64, the bswap instruction is called bswapq Building with tcc fails on "bswap" which in fact ought to be called "bswapq". Let's rename it as gas doesn't care. --- include/haproxy/intops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/haproxy/intops.h b/include/haproxy/intops.h index 960c6cbe3d..e5d795e63e 100644 --- a/include/haproxy/intops.h +++ b/include/haproxy/intops.h @@ -220,7 +220,7 @@ static inline unsigned long nbits(int bits) static inline unsigned long long my_htonll(unsigned long long a) { #if defined(__x86_64__) - __asm__ volatile("bswap %0" : "=r"(a) : "0"(a)); + __asm__ volatile("bswapq %0" : "=r"(a) : "0"(a)); return a; #else union {