Add fancy_abort
authorMichael Meissner <meissner@gcc.gnu.org>
Fri, 23 Aug 1996 14:45:19 +0000 (14:45 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Fri, 23 Aug 1996 14:45:19 +0000 (14:45 +0000)
From-SVN: r12669

gcc/bi-arity.c
gcc/bi-opcode.c
gcc/bi-opname.c

index d0b4d5a112c74a73b3fe401c6d4afc24428aef0b..ea1f3e1de0869eb9c9f9d944e0e27719d5cf5965 100644 (file)
@@ -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);
+}
index 9e5799c028beaba4c82232eaab8e450cbf459e4d..795bb6fb2758dc41b1fec4c4fcdc17c023b28613 100644 (file)
@@ -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);
+}
index ad86dd19cf23ed7df47f859d22f5165fa527f7a8..2f41dd27dbcee6369276a2fadef5af7ee857cf00 100644 (file)
@@ -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);
+}