__builtin_unreachable appeared in gcc 4.5.0

This commit is contained in:
Yuichi Nishiwaki 2014-06-16 01:44:38 +09:00
parent 3d8017933c
commit 9aa85c4eb2
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ extern "C" {
# define GENSYM(x) GENSYM1__(__LINE__,x)
#endif
#if __GNUC__ || __clang__
#if GCC_VERSION >= 40500 || __clang__
# define UNREACHABLE() (__builtin_unreachable())
#else
# include <assert.h>