Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/gcc4/gcc Improve the output of gcc when a subprogra...



details:   https://anonhg.NetBSD.org/src/rev/77523e4c01eb
branches:  trunk
changeset: 785894:77523e4c01eb
user:      dholland <dholland%NetBSD.org@localhost>
date:      Fri Apr 05 03:14:45 2013 +0000

description:
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.

diffstat:

 gnu/dist/gcc4/gcc/gcc.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r fc144c336ada -r 77523e4c01eb gnu/dist/gcc4/gcc/gcc.c
--- a/gnu/dist/gcc4/gcc/gcc.c   Thu Apr 04 22:35:28 2013 +0000
+++ b/gnu/dist/gcc4/gcc/gcc.c   Fri Apr 05 03:14:45 2013 +0000
@@ -2888,10 +2888,11 @@
            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;



Home | Main Index | Thread Index | Old Index