From: Nicola Vetrini <nicola.vetr...@gmail.com> The GCC baseline version is 5.1, which supports __builtin_unreachable(), therefore the alternative definition can be dropped
Signed-off-by: Nicola Vetrini <nicola.vetr...@gmail.com> --- Mentioned in https://gitlab.com/xen-project/xen/-/issues/201 --- xen/include/xen/compiler.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xen/include/xen/compiler.h b/xen/include/xen/compiler.h index 735c844d2d15..88bf26bc5109 100644 --- a/xen/include/xen/compiler.h +++ b/xen/include/xen/compiler.h @@ -47,11 +47,7 @@ # define cf_check #endif -#if (!defined(__clang__) && (__GNUC__ == 4) && (__GNUC_MINOR__ < 5)) -#define unreachable() do {} while (1) -#else #define unreachable() __builtin_unreachable() -#endif /* * Compilers estimate the size of an asm() block for inlining purposes. -- 2.43.0