From fbfc11925b971a0d73b7253ba71bef3c32c9fb95 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Fri, 21 Jul 2000 07:10:36 +0000 Subject: diagnostic.c (trim_filename, [...]): Moved here from rtl.c. * 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. From-SVN: r35170 --- gcc/system.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/system.h') diff --git a/gcc/system.h b/gcc/system.h index 410c280597e..5741d336b8b 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -615,4 +615,9 @@ extern void abort PARAMS ((void)); extern void *alloca (__SIZE_TYPE__); #endif +/* Various error reporting routines want to use __FUNCTION__. */ +#if (GCC_VERSION < 2007) +#define __FUNCTION__ "?" +#endif + #endif /* __GCC_SYSTEM_H__ */ -- cgit v1.2.1