Module Name:    src
Committed By:   dholland
Date:           Fri Apr  5 03:14:45 UTC 2013

Modified Files:
        src/gnu/dist/gcc4/gcc: gcc.c

Log Message:
Improve the output of gcc when a subprogram gets a signal. When OOMing
it gets signal 9, which prints "Killed" -- that this is actually
signal 9 and not a generic message is never clear and causes people to
file PRs unnecessarily.

Suggested by followups to PR 44096.

I applied this to gcc 4.5 ages ago, but this copy has been sitting
around in one of my trees for even longer and it may as well get
committed too.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/gnu/dist/gcc4/gcc/gcc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/gnu/dist/gcc4/gcc/gcc.c
diff -u src/gnu/dist/gcc4/gcc/gcc.c:1.5 src/gnu/dist/gcc4/gcc/gcc.c:1.6
--- src/gnu/dist/gcc4/gcc/gcc.c:1.5	Sun Apr 10 16:50:18 2011
+++ src/gnu/dist/gcc4/gcc/gcc.c	Fri Apr  5 03:14:45 2013
@@ -2888,10 +2888,11 @@ execute (void)
 	    else
 #endif
 	      fatal ("\
-Internal error: %s (program %s)\n\
+Internal error: %s (program %s received signal %d)\n\
 Please submit a full bug report.\n\
 See %s for instructions.",
 		     strsignal (WTERMSIG (status)), commands[i].prog,
+		     WTERMSIG (status),
 		     bug_report_url);
 	    signal_count++;
 	    ret_code = -1;

Reply via email to