summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1996-08-23 14:45:19 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1996-08-23 14:45:19 +0000
commit60a3d801a806782be418db7589e2f675a6a4909b (patch)
treeabb4fd98faad374c3da65d7a789402b7df339ea2
parentce59619c01966977ca5b2537c1fd138f6abe767a (diff)
downloadgcc-60a3d801a806782be418db7589e2f675a6a4909b.tar.gz
Add fancy_abort
From-SVN: r12669
-rw-r--r--gcc/bi-arity.c10
-rw-r--r--gcc/bi-opcode.c10
-rw-r--r--gcc/bi-opname.c10
3 files changed, 30 insertions, 0 deletions
diff --git a/gcc/bi-arity.c b/gcc/bi-arity.c
index d0b4d5a112c..ea1f3e1de08 100644
--- a/gcc/bi-arity.c
+++ b/gcc/bi-arity.c
@@ -79,3 +79,13 @@ xmalloc (nbytes)
return tmp;
}
+
+/* More 'friendly' abort that prints the line and file.
+ config.h can #define abort fancy_abort if you like that sort of thing. */
+
+void
+fancy_abort ()
+{
+ fprintf (stderr, "Internal gcc abort.\n");
+ exit (FATAL_EXIT_CODE);
+}
diff --git a/gcc/bi-opcode.c b/gcc/bi-opcode.c
index 9e5799c028b..795bb6fb275 100644
--- a/gcc/bi-opcode.c
+++ b/gcc/bi-opcode.c
@@ -77,3 +77,13 @@ xmalloc (nbytes)
return tmp;
}
+
+/* More 'friendly' abort that prints the line and file.
+ config.h can #define abort fancy_abort if you like that sort of thing. */
+
+void
+fancy_abort ()
+{
+ fprintf (stderr, "Internal gcc abort.\n");
+ exit (FATAL_EXIT_CODE);
+}
diff --git a/gcc/bi-opname.c b/gcc/bi-opname.c
index ad86dd19cf2..2f41dd27dbc 100644
--- a/gcc/bi-opname.c
+++ b/gcc/bi-opname.c
@@ -58,3 +58,13 @@ xmalloc (nbytes)
return tmp;
}
+
+/* More 'friendly' abort that prints the line and file.
+ config.h can #define abort fancy_abort if you like that sort of thing. */
+
+void
+fancy_abort ()
+{
+ fprintf (stderr, "Internal gcc abort.\n");
+ exit (FATAL_EXIT_CODE);
+}