From 60a3d801a806782be418db7589e2f675a6a4909b Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Fri, 23 Aug 1996 14:45:19 +0000 Subject: [PATCH] Add fancy_abort From-SVN: r12669 --- gcc/bi-arity.c | 10 ++++++++++ gcc/bi-opcode.c | 10 ++++++++++ gcc/bi-opname.c | 10 ++++++++++ 3 files changed, 30 insertions(+) diff --git a/gcc/bi-arity.c b/gcc/bi-arity.c index d0b4d5a112c..ea1f3e1de08 100644 --- a/gcc/bi-arity.c +++ b/gcc/bi-arity.c @@ -79,3 +79,13 @@ xmalloc (nbytes) return tmp; } + +/* More 'friendly' abort that prints the line and file. + config.h can #define abort fancy_abort if you like that sort of thing. */ + +void +fancy_abort () +{ + fprintf (stderr, "Internal gcc abort.\n"); + exit (FATAL_EXIT_CODE); +} diff --git a/gcc/bi-opcode.c b/gcc/bi-opcode.c index 9e5799c028b..795bb6fb275 100644 --- a/gcc/bi-opcode.c +++ b/gcc/bi-opcode.c @@ -77,3 +77,13 @@ xmalloc (nbytes) return tmp; } + +/* More 'friendly' abort that prints the line and file. + config.h can #define abort fancy_abort if you like that sort of thing. */ + +void +fancy_abort () +{ + fprintf (stderr, "Internal gcc abort.\n"); + exit (FATAL_EXIT_CODE); +} diff --git a/gcc/bi-opname.c b/gcc/bi-opname.c index ad86dd19cf2..2f41dd27dbc 100644 --- a/gcc/bi-opname.c +++ b/gcc/bi-opname.c @@ -58,3 +58,13 @@ xmalloc (nbytes) return tmp; } + +/* More 'friendly' abort that prints the line and file. + config.h can #define abort fancy_abort if you like that sort of thing. */ + +void +fancy_abort () +{ + fprintf (stderr, "Internal gcc abort.\n"); + exit (FATAL_EXIT_CODE); +} -- 2.30.2