aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-03-30 19:01:58 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-03-30 19:01:58 +0000
commit15dda4d3bc2128d7b59a1b8265911068ef0beb58 (patch)
tree2f9ae577f446e2df7bdc4c485d4ca512a55a9a32 /gcc/collect2.c
parent5bf92e20913144dd2f78754dd76310e75786e478 (diff)
downloadgcc-15dda4d3bc2128d7b59a1b8265911068ef0beb58.zip
gcc-15dda4d3bc2128d7b59a1b8265911068ef0beb58.tar.gz
gcc-15dda4d3bc2128d7b59a1b8265911068ef0beb58.tar.bz2
re PR other/6955 (collect2 says "core dumped" when there is no core)
PR other/6955 * collect2.c (collect_wait): Use WCOREDUMP and fix output message. * system.h (WCOREDUMP, WCOREFLG): Define if necessary. From-SVN: r65048
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index af97c20..ca1fe92 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1508,7 +1508,7 @@ collect_wait (prog)
int sig = WTERMSIG (status);
error ("%s terminated with signal %d [%s]%s",
prog, sig, strsignal(sig),
- status & 0200 ? "" : ", core dumped");
+ WCOREDUMP(status) ? ", core dumped" : "");
collect_exit (FATAL_EXIT_CODE);
}