From: Michael Meissner Date: Fri, 23 Aug 1996 14:45:19 +0000 (+0000) Subject: Add fancy_abort X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60a3d801a806782be418db7589e2f675a6a4909b;p=gcc.git Add fancy_abort From-SVN: r12669 --- 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); +}