summaryrefslogtreecommitdiff
path: root/lib/make/cctk_Config.h.in
diff options
context:
space:
mode:
authoreschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2013-03-05 12:07:31 +0000
committereschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2013-03-05 12:07:31 +0000
commit0a9e882d8b2a1e46e982b5d43038f01c113463ca (patch)
tree967b56b0f533b5a6adaa556d7f5ea52ec4f39709 /lib/make/cctk_Config.h.in
parent9cff90a8e99f1df4fbc651ada92283a01588623f (diff)
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
Diffstat (limited to 'lib/make/cctk_Config.h.in')
-rw-r--r--lib/make/cctk_Config.h.in4
1 files changed, 2 insertions, 2 deletions
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 */