aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-08-25 02:00:39 +0000
committerIan Lance Taylor <ian@airs.com>1995-08-25 02:00:39 +0000
commit69cc18d2f050933ef15a2bc601be6cdfa2f8f0f4 (patch)
treec79d3265a9183e8f69050aa23b51b0baf8332c5b /gas
parent791ee5194924181b9cec36ba2901e2c83559d618 (diff)
downloadgdb-69cc18d2f050933ef15a2bc601be6cdfa2f8f0f4.zip
gdb-69cc18d2f050933ef15a2bc601be6cdfa2f8f0f4.tar.gz
gdb-69cc18d2f050933ef15a2bc601be6cdfa2f8f0f4.tar.bz2
* gasp.c (as_abort): New function.
* sb.c (sb_build): Revert yesterday's patch.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog3
-rw-r--r--gas/gasp.c15
2 files changed, 18 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 757d1a1..71a05b4 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,8 @@
Thu Aug 24 18:50:19 1995 Ian Lance Taylor (ian@cygnus.com)
+ * gasp.c (as_abort): New function.
+ * sb.c (sb_build): Revert yesterday's patch.
+
* Makefile.in (gasp.new): Depend upon ../libiberty/libiberty.a.
Just link against libiberty, not against $(LIBS).
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);
+}