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:
parent
b6465c5d37
commit
255fdbee78
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue