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.
This commit is contained in:
dholland 2013-04-05 03:14:45 +00:00
parent b6465c5d37
commit 255fdbee78
1 changed files with 2 additions and 1 deletions

View File

@ -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;