aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg.h
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2018-12-03 13:48:19 +0100
committerThomas Huth <thuth@redhat.com>2018-12-12 10:01:12 +0100
commit6fa2cef205a60b5c5c3b058f53852416b885c455 (patch)
tree38a9df6c68d25c329b9b9e1fbb2c5c47740e5c02 /tcg/tcg.h
parentd376e9de07e9541a040609d30b73403c33b6afe0 (diff)
downloadqemu-6fa2cef205a60b5c5c3b058f53852416b885c455.zip
qemu-6fa2cef205a60b5c5c3b058f53852416b885c455.tar.gz
qemu-6fa2cef205a60b5c5c3b058f53852416b885c455.tar.bz2
tcg/tcg.h: Remove GCC check for tcg_debug_assert() macro
Both GCC v4.8 and Clang v3.4 (our minimum versions) support __builtin_unreachable(), so we can remove the version check here now. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r--tcg/tcg.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/tcg/tcg.h b/tcg/tcg.h
index f4efbaa..f9a56a9 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -230,11 +230,9 @@ typedef uint64_t tcg_insn_unit;
#if defined CONFIG_DEBUG_TCG || defined QEMU_STATIC_ANALYSIS
# define tcg_debug_assert(X) do { assert(X); } while (0)
-#elif QEMU_GNUC_PREREQ(4, 5)
+#else
# define tcg_debug_assert(X) \
do { if (!(X)) { __builtin_unreachable(); } } while (0)
-#else
-# define tcg_debug_assert(X) do { (void)(X); } while (0)
#endif
typedef struct TCGRelocation {