From: Willy Tarreau Date: Thu, 10 Sep 2020 07:31:50 +0000 (+0200) Subject: BUILD: intops: on x86_64, the bswap instruction is called bswapq X-Git-Tag: v2.3-dev4~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d966f1497c7912798a0495d1a7b78ceb301cae39;p=thirdparty%2Fhaproxy.git 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. --- 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 {