aboutsummaryrefslogtreecommitdiff
path: root/gcc/tradcpp.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-07-21 07:10:36 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-07-21 07:10:36 +0000
commitfbfc11925b971a0d73b7253ba71bef3c32c9fb95 (patch)
treed19f337e85d3fb553f6806af5174bc4df981e7c8 /gcc/tradcpp.c
parent1b493b8185a04b875c99c0dc4ef63005bb5fc54b (diff)
downloadgcc-fbfc11925b971a0d73b7253ba71bef3c32c9fb95.zip
gcc-fbfc11925b971a0d73b7253ba71bef3c32c9fb95.tar.gz
gcc-fbfc11925b971a0d73b7253ba71bef3c32c9fb95.tar.bz2
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
Diffstat (limited to 'gcc/tradcpp.c')
-rw-r--r--gcc/tradcpp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/tradcpp.c b/gcc/tradcpp.c
index 1881d75..66f4914 100644
--- a/gcc/tradcpp.c
+++ b/gcc/tradcpp.c
@@ -4249,10 +4249,7 @@ fancy_abort (line, func)
int line;
const char *func;
{
- if (!func)
- func = "?";
-
- fatal ("Internal error in \"%s\", at tradcpp.c:%d\n\
+ fatal ("Internal error in %s, at tradcpp.c:%d\n\
Please submit a full bug report.\n\
See %s for instructions.", func, line, GCCBUGURL);
}