From 19fafbd363af0c07562e77595fc94ad786c4e00f Mon Sep 17 00:00:00 2001 From: zack Date: Fri, 21 Jul 2000 07:10:36 +0000 Subject: * diagnostic.c (trim_filename, fancy_abort): Moved here from rtl.c. (fatal_function, set_fatal_function): Removed. (fatal): Don't prepare for or call the fatal_function. (diagnostic_lock, error_recursion): New. (diagnostic_for_decl, report_diagnostic): Guard against re-entering the error reporting routines. (fancy_abort): Assume function is not NULL. * errors.c (fancy_abort): New. Assume function is not NULL. * tradcpp.c (fancy_abort): Assume function is not NULL. * system.h: Provide default definition of __FUNCTION__. * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout. Always use __FUNCTION__ in definition of abort. * tree.h: Likewise. * varray.h: Likewise. * toplev.h: Likewise. Don't prototype set_fatal_function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35170 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/errors.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gcc/errors.c') diff --git a/gcc/errors.c b/gcc/errors.c index bc3667e9289..8ccd7d0b2e0 100644 --- a/gcc/errors.c +++ b/gcc/errors.c @@ -104,3 +104,15 @@ fatal VPARAMS ((const char *format, ...)) fputc('\n', stderr); exit (FATAL_EXIT_CODE); } + +/* "Fancy" abort. Reports where in the compiler someone gave up. + This file is used only by build programs, so we're not as polite as + the version in diagnostic.c. */ +void +fancy_abort (file, line, func) + const char *file; + int line; + const char *func; +{ + fatal ("ICE in %s, at %s:%d", func, file, line); +} -- cgit v1.2.1