From 8a85c4617f4f0be5f8f476c70ab146a8a0750119 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Thu, 1 Apr 2010 17:04:06 +0000 Subject: [PATCH] Fixes trac:2366: dragonboy noticed that the PGI compiler is picky about #if directives -- had to change a pair of #if conditionals in opal/util/stacktrace.c to make the PGI compiler accept it. This commit was SVN r22923. The following Trac tickets were found above: Ticket 2366 --> https://svn.open-mpi.org/trac/ompi/ticket/2366 --- opal/util/stacktrace.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/opal/util/stacktrace.c b/opal/util/stacktrace.c index 8f7bb16d88..7766bce13e 100644 --- a/opal/util/stacktrace.c +++ b/opal/util/stacktrace.c @@ -266,8 +266,12 @@ static void show_stackframe (int signo, siginfo_t * info, void * p) case SI_KERNEL: si_code_str = "Kernel signal"; break; #endif /* Dragonfly defines SI_USER and SI_UNDEFINED both as zero: */ -#if defined(SI_UNDEFINED) && (SI_UNDEFINED != SI_USER) +/* For some reason, the PGI compiler will not let us combine these two + #if tests into a single statement. Sigh. */ +#if defined(SI_UNDEFINED) +#if SI_UNDEFINED != SI_USER case SI_UNDEFINED: si_code_str = "Undefined code"; break; +#endif #endif } }