diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-08-23 14:45:19 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-08-23 14:45:19 +0000 |
commit | 8913877986264967ed04ce72323ce8cc36616636 (patch) | |
tree | abb4fd98faad374c3da65d7a789402b7df339ea2 /gcc/bi-opcode.c | |
parent | b62158e9a66fc65da51a7b820a840016b026538c (diff) | |
download | gcc-8913877986264967ed04ce72323ce8cc36616636.tar.gz |
Add fancy_abort
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12669 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bi-opcode.c')
-rw-r--r-- | gcc/bi-opcode.c | 10 |
1 files changed, 10 insertions, 0 deletions
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); +} |