File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
CoreFoundation/Base.subproj Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -171,9 +171,13 @@ 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__)
176
- #define HALT do {asm __volatile__ (" int3" ); kill (getpid (), 9 ); __builtin_unreachable (); } while (0 )
174
+ #if defined(__i386__) || defined(__x86_64__) || defined(__s390x__)
175
+ #if defined(__GNUC__)
176
+ #if defined(__s390x__)
177
+ #define HALT do {__builtin_trap (); kill (getpid (), 9 ); __builtin_unreachable (); } while (0 )
178
+ #else
179
+ #define HALT do {asm __volatile__ (" int3" ); kill (getpid (), 9 ); __builtin_unreachable (); } while (0 )
180
+ #endif
177
181
#elif defined(_MSC_VER)
178
182
#define HALT do { DebugBreak (); abort (); __builtin_unreachable (); } while (0 )
179
183
#else
You can’t perform that action at this time.
0 commit comments