summaryrefslogtreecommitdiff
path: root/libgfortran/runtime
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-10 09:32:29 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-10 09:32:29 +0000
commit663fb37d3dc29927d2324f4d1e3560bf7bc8e84b (patch)
tree550bc7bc9b4570e704884fbcbc582171d7640372 /libgfortran/runtime
parentfa66599afbd651536c052fbb2f609995d452e4e4 (diff)
downloadgcc-663fb37d3dc29927d2324f4d1e3560bf7bc8e84b.tar.gz
2012-01-10 Tobias Burnus <burnus@net-b.de>
PR fortran/51197 * runtime/compile_options.c (show_signal): List more signals. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183057 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/runtime')
-rw-r--r--libgfortran/runtime/compile_options.c61
1 files changed, 48 insertions, 13 deletions
diff --git a/libgfortran/runtime/compile_options.c b/libgfortran/runtime/compile_options.c
index 8038f07cb3e..0e657f73ba6 100644
--- a/libgfortran/runtime/compile_options.c
+++ b/libgfortran/runtime/compile_options.c
@@ -43,37 +43,72 @@ show_signal (int signum)
switch (signum)
{
-#if defined(SIGSEGV)
+#if defined(SIGQUIT)
+ case SIGQUIT:
+ name = "SIGQUIT";
+ desc = "Terminal quit signal";
+ break;
+#endif
+
+ /* The following 4 signals are defined by C89. */
+ case SIGILL:
+ name = "SIGILL";
+ desc = "Illegal instruction";
+ break;
+
+ case SIGABRT:
+ name = "SIGABRT";
+ desc = "Process abort signal";
+ break;
+
+ case SIGFPE:
+ name = "SIGFPE";
+ desc = "Floating-point exception - erroneous arithmetic operation";
+ break;
+
case SIGSEGV:
name = "SIGSEGV";
- desc = "Segmentation fault";
+ desc = "Segmentation fault - invalid memory reference";
break;
-#endif
#if defined(SIGBUS)
case SIGBUS:
name = "SIGBUS";
- desc = "Bus error";
+ desc = "Access to an undefined portion of a memory object";
break;
#endif
-#if defined(SIGILL)
- case SIGILL:
- name = "SIGILL";
- desc = "Illegal instruction";
+#if defined(SIGSYS)
+ case SIGSYS:
+ name = "SIGSYS";
+ desc = "Bad system call";
break;
#endif
-#if defined(SIGFPE)
- case SIGFPE:
- name = "SIGFPE";
- desc = "Floating-point exception";
+#if defined(SIGTRAP)
+ case SIGTRAP:
+ name = "SIGTRAP";
+ desc = "Trace/breakpoint trap";
+ break;
+#endif
+
+#if defined(SIGXCPU)
+ case SIGXCPU:
+ name = "SIGXCPU";
+ desc = "CPU time limit exceeded";
+ break;
+#endif
+
+#if defined(SIGXFSZ)
+ case SIGXFSZ:
+ name = "SIGXFSZ";
+ desc = "File size limit exceeded";
break;
#endif
}
if (name)
- st_printf ("\nProgram received signal %d (%s): %s.\n", signum, name, desc);
+ st_printf ("\nProgram received signal %s: %s.\n", name, desc);
else
st_printf ("\nProgram received signal %d.\n", signum);
}