From 1b493b8185a04b875c99c0dc4ef63005bb5fc54b Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Fri, 21 Jul 2000 06:41:39 +0000 Subject: cp-tree.h: Use __FUNCTION__ not __PRETTY_FUNCTION__. * cp-tree.h: Use __FUNCTION__ not __PRETTY_FUNCTION__. Define my_friendly_assert and my_friendly_abort as macros which may call friendly_abort. Prototype friendly abort, not my_friendly_abort or my_friendly_assert. * decl.c (signal_catch): Report the signal caught in the error message. Call fatal directly. * typeck2.c (ack, my_friendly_assert): Delete. (my_friendly_abort): Rename to friendly_abort. Expect file, line, and function parameters. Report the abort code, then call fancy_abort. Do not mask an abort if errors have already occurred. * g++.old-deja/g++.brendan/crash16.C, g++.old-deja/g++.brendan/parse3.C, g++.old-deja/g++.brendan/redecl1.C, g++.old-deja/g++.ns/template13.C, g++.old-deja/g++.other/decl4.C, g++.old-deja/g++.pt/spec14.C: Mark as crash test, expected to fail. From-SVN: r35169 --- gcc/cp/decl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gcc/cp/decl.c') diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index f8c5ff2..a6b21fd 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -6105,7 +6105,7 @@ end_only_namespace_names () static void signal_catch (sig) - int sig ATTRIBUTE_UNUSED; + int sig; { signal (SIGSEGV, SIG_DFL); #ifdef SIGIOT @@ -6120,7 +6120,10 @@ signal_catch (sig) #ifdef SIGBUS signal (SIGBUS, SIG_DFL); #endif - my_friendly_abort (0); + + fatal ("Internal error: %s\n\ +Please submit a full bug report.\n\ +See %s for instructions.", strsignal (sig), GCCBUGURL); } /* Push the declarations of builtin types into the namespace. -- cgit v1.1