Use __builtin_trap for our crash define instead of int3/exit

This commit is contained in:
Ryan Houdek 2015-11-19 00:49:42 -06:00
parent 59b54a77d3
commit 5f1fcf4c8d
1 changed files with 1 additions and 5 deletions

View File

@ -36,11 +36,7 @@ constexpr size_t ArraySize(T (&arr)[N])
#endif #endif
// go to debugger mode // go to debugger mode
#ifdef _M_X86 #define Crash() { __builtin_trap(); }
#define Crash() {asm ("int $3");}
#else
#define Crash() { exit(1); }
#endif
// GCC 4.8 defines all the rotate functions now // GCC 4.8 defines all the rotate functions now
// Small issue with GCC's lrotl/lrotr intrinsics is they are still 32bit while we require 64bit // Small issue with GCC's lrotl/lrotr intrinsics is they are still 32bit while we require 64bit