From 15dda4d3bc2128d7b59a1b8265911068ef0beb58 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sun, 30 Mar 2003 19:01:58 +0000 Subject: 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 --- gcc/system.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/system.h') diff --git a/gcc/system.h b/gcc/system.h index 81988c5..2f16008 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -270,6 +270,12 @@ extern int errno; #ifndef WSTOPSIG #define WSTOPSIG WEXITSTATUS #endif +#ifndef WCOREDUMP +#define WCOREDUMP(S) ((S) & WCOREFLG) +#endif +#ifndef WCOREFLG +#define WCOREFLG 0200 +#endif /* The HAVE_DECL_* macros are three-state, undefined, 0 or 1. If they are defined to 0 then we must provide the relevant declaration -- cgit v1.1