Skip to content
Snippets Groups Projects
Commit 2c97c2cc authored by Chris Lattner's avatar Chris Lattner
Browse files

Submitted by Casey Carter:

ISSUE: Linux doesn't have any steenking SIGEMT signal, as referred to in
lib/Support/Signals.cpp.

ACTION: Wrap the use with a #ifdef SIGEMT / #endif.
llvm-svn: 3700
parent 548002f3
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,10 @@ static const int *IntSigsEnd = IntSigs + sizeof(IntSigs)/sizeof(IntSigs[0]); ...@@ -24,8 +24,10 @@ static const int *IntSigsEnd = IntSigs + sizeof(IntSigs)/sizeof(IntSigs[0]);
// KillSigs - Signals that are synchronous with the program that will cause it // KillSigs - Signals that are synchronous with the program that will cause it
// to die. // to die.
static const int KillSigs[] = { static const int KillSigs[] = {
SIGILL, SIGTRAP, SIGABRT, SIGEMT, SIGFPE, SIGILL, SIGTRAP, SIGABRT, SIGFPE, SIGBUS, SIGSEGV, SIGSYS, SIGXCPU, SIGXFSZ
SIGBUS, SIGSEGV, SIGSYS, SIGXCPU, SIGXFSZ #ifdef SIGEMT
, SIGEMT
#endif
}; };
static const int *KillSigsEnd = KillSigs + sizeof(KillSigs)/sizeof(KillSigs[0]); static const int *KillSigsEnd = KillSigs + sizeof(KillSigs)/sizeof(KillSigs[0]);
......
...@@ -24,8 +24,10 @@ static const int *IntSigsEnd = IntSigs + sizeof(IntSigs)/sizeof(IntSigs[0]); ...@@ -24,8 +24,10 @@ static const int *IntSigsEnd = IntSigs + sizeof(IntSigs)/sizeof(IntSigs[0]);
// KillSigs - Signals that are synchronous with the program that will cause it // KillSigs - Signals that are synchronous with the program that will cause it
// to die. // to die.
static const int KillSigs[] = { static const int KillSigs[] = {
SIGILL, SIGTRAP, SIGABRT, SIGEMT, SIGFPE, SIGILL, SIGTRAP, SIGABRT, SIGFPE, SIGBUS, SIGSEGV, SIGSYS, SIGXCPU, SIGXFSZ
SIGBUS, SIGSEGV, SIGSYS, SIGXCPU, SIGXFSZ #ifdef SIGEMT
, SIGEMT
#endif
}; };
static const int *KillSigsEnd = KillSigs + sizeof(KillSigs)/sizeof(KillSigs[0]); static const int *KillSigsEnd = KillSigs + sizeof(KillSigs)/sizeof(KillSigs[0]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment