From d46cd2be374fa3791edc5f69cb2731b9bae11af3 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 24 Aug 2004 08:52:38 +0000 Subject: Makefile.in (PROTO_OBJS): Add errors.o. * Makefile.in (PROTO_OBJS): Add errors.o. * protoize.c (fancy_abort): Remove. * mips-tfile.c (fancy_abort): Add parameters. From-SVN: r86471 --- gcc/mips-tfile.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gcc/mips-tfile.c') diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c index 9b33306..9b63064 100644 --- a/gcc/mips-tfile.c +++ b/gcc/mips-tfile.c @@ -637,7 +637,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA so they can't be static. */ extern void pfatal_with_name (const char *) ATTRIBUTE_NORETURN; -extern void fancy_abort (void) ATTRIBUTE_NORETURN; extern void botch (const char *) ATTRIBUTE_NORETURN; extern void fatal (const char *format, ...) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN; @@ -5471,13 +5470,12 @@ error (const char *format, ...) saber_stop (); } -/* More 'friendly' abort that prints the line and file. - config.h can #define abort fancy_abort if you like that sort of thing. */ +/* More 'friendly' abort that prints the line and file. */ void -fancy_abort (void) +fancy_abort (const char *file, int line, const char *func) { - fatal ("internal abort"); + fatal ("abort in %s, at %s:%d", func, file, line); } -- cgit v1.1