From 0a9e882d8b2a1e46e982b5d43038f01c113463ca Mon Sep 17 00:00:00 2001 From: eschnett Date: Tue, 5 Mar 2013 12:07:31 +0000 Subject: Correct autoconf of __builtin_unreachable() Correct autodetection of __builtin_unreachable() Correct fallback implementation of CCTK_BUILTIN_UNREACHABLE git-svn-id: http://svn.cactuscode.org/flesh/trunk@4976 17b73243-c579-4c4c-a9d2-2d5706c11dac --- lib/make/cctk_Config.h.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/make/cctk_Config.h.in') diff --git a/lib/make/cctk_Config.h.in b/lib/make/cctk_Config.h.in index 5214e1ee..2de9fd0a 100644 --- a/lib/make/cctk_Config.h.in +++ b/lib/make/cctk_Config.h.in @@ -370,7 +370,7 @@ typedef enum {false, true} bool; #ifdef HAVE_CCTK_C_BUILTIN_UNREACHABLE # define CCTK_BUILTIN_UNREACHABLE() __builtin_unreachable() #else -# define CCTK_BUILTIN_UNREACHABLE() CCTK_Abort() +# define CCTK_BUILTIN_UNREACHABLE() CCTK_Abort(0, 1) #endif /* OpenMP collapse clause */ @@ -579,7 +579,7 @@ typedef enum {false, true} bool; #ifdef HAVE_CCTK_CXX_BUILTIN_UNREACHABLE # define CCTK_BUILTIN_UNREACHABLE() __builtin_unreachable() #else -# define CCTK_BUILTIN_UNREACHABLE() ((void)0) +# define CCTK_BUILTIN_UNREACHABLE() CCTK_Abort(0, 1) #endif /* Some C++ compilers recognise the restrict keyword */ -- cgit v1.2.3