File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
CoreFoundation/Base.subproj Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -171,14 +171,16 @@ CF_PRIVATE CFIndex __CFActiveProcessorCount();
171
171
#define __builtin_unreachable () do { } while (0 )
172
172
#endif
173
173
174
- #if defined(__i386__) || defined(__x86_64__)
175
- #if defined(__GNUC__ )
174
+ #if defined(__GNUC__)
175
+ #if defined(__i386__) || defined(__x86_64__ )
176
176
#define HALT do {asm __volatile__ (" int3" ); kill (getpid (), 9 ); __builtin_unreachable (); } while (0 )
177
- #elif defined(_MSC_VER)
178
- #define HALT do { DebugBreak (); abort (); __builtin_unreachable (); } while (0 )
179
177
#else
180
- #error Compiler not supported
178
+ #define HALT do { __builtin_trap (); kill ( getpid (), 9 ); __builtin_unreachable (); } while ( 0 )
181
179
#endif
180
+ #elif defined(_MSC_VER)
181
+ #define HALT do { DebugBreak (); abort (); __builtin_unreachable (); } while (0 )
182
+ #else
183
+ #error Compiler not supported
182
184
#endif
183
185
184
186
You can’t perform that action at this time.
0 commit comments