qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 04/13] compiler.h: remove GCC < 3 __builtin_expect fallback


From: marcandre . lureau
Subject: [PATCH v2 04/13] compiler.h: remove GCC < 3 __builtin_expect fallback
Date: Thu, 26 Nov 2020 15:29:06 +0400

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Since commit efc6c07 ("configure: Add a test for the minimum compiler
version"), QEMU explicitely depends on GCC >= 4.8.

(clang >= 3.8 advertizes itself as GCC >= 4.2 compatible)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 include/qemu/compiler.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h
index cf044bab4a..ae3e0df34c 100644
--- a/include/qemu/compiler.h
+++ b/include/qemu/compiler.h
@@ -35,10 +35,6 @@
 #endif
 
 #ifndef likely
-#if __GNUC__ < 3
-#define __builtin_expect(x, n) (x)
-#endif
-
 #define likely(x)   __builtin_expect(!!(x), 1)
 #define unlikely(x)   __builtin_expect(!!(x), 0)
 #endif
-- 
2.29.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]