aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-07-21 06:41:39 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-07-21 06:41:39 +0000
commit1b493b8185a04b875c99c0dc4ef63005bb5fc54b (patch)
treee7fbeece18db671ef3328f933a6ed570f4533766 /gcc/cp/decl.c
parent117c9b1c9ddc571a39b46c8151df72e50a2c41e0 (diff)
downloadgcc-1b493b8185a04b875c99c0dc4ef63005bb5fc54b.zip
gcc-1b493b8185a04b875c99c0dc4ef63005bb5fc54b.tar.gz
gcc-1b493b8185a04b875c99c0dc4ef63005bb5fc54b.tar.bz2
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
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c7
1 files changed, 5 insertions, 2 deletions
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.