aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-12-10 17:47:42 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-12-15 12:52:09 -0500
commit44cb2c9fe5dd2aa8b44eb42f34ec786ba21a2731 (patch)
treea9db7b41b017e397926a379a3dac48498fd6ebc7
parent19a84318c674c157f1b04c5c99595379f8ac8bb3 (diff)
downloadqemu-44cb2c9fe5dd2aa8b44eb42f34ec786ba21a2731.zip
qemu-44cb2c9fe5dd2aa8b44eb42f34ec786ba21a2731.tar.gz
qemu-44cb2c9fe5dd2aa8b44eb42f34ec786ba21a2731.tar.bz2
compiler.h: remove GCC < 3 __builtin_expect fallback
Since commit efc6c07 ("configure: Add a test for the minimum compiler version"), QEMU explicitely depends on GCC >= 4.8. (clang >= 3.4 advertizes itself as GCC >= 4.2 compatible and supports __builtin_expect too) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20201210134752.780923-4-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--include/qemu/compiler.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h
index c76281f..226ead6 100644
--- a/include/qemu/compiler.h
+++ b/include/qemu/compiler.h
@@ -44,10 +44,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