From 69cc18d2f050933ef15a2bc601be6cdfa2f8f0f4 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 25 Aug 1995 02:00:39 +0000 Subject: * gasp.c (as_abort): New function. * sb.c (sb_build): Revert yesterday's patch. --- gas/gasp.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gas/gasp.c') diff --git a/gas/gasp.c b/gas/gasp.c index 1e24220..cff9025 100644 --- a/gas/gasp.c +++ b/gas/gasp.c @@ -3644,3 +3644,18 @@ main (argc, argv) quit (); return 0; } + +/* This function is used because an abort in some of the other files + may be compiled into as_abort because they include as.h. */ + +void +as_abort (file, line, fn) + const char *file, *fn; + int line; +{ + fprintf (stderr, "Internal error, aborting at %s line %d", file, line); + if (fn) + fprintf (stderr, " in %s", fn); + fprintf (stderr, "\nPlease report this bug.\n"); + exit (1); +} -- cgit v1.1