diff --git a/gcc/bi-arity.c b/gcc/bi-arity.c index d0b4d5a112c7..ea1f3e1de086 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 9e5799c028be..795bb6fb2758 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 ad86dd19cf23..2f41dd27dbce 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); +}