aboutsummaryrefslogtreecommitdiff
path: root/gas/messages.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-09-22 11:35:14 +0000
committerAlan Modra <amodra@gmail.com>2006-09-22 11:35:14 +0000
commit885afe7b6fda4324ac445cfdd9e37630f5061dc0 (patch)
tree2f435abf11a454bf8ba62f2534fa2520b6b00a13 /gas/messages.c
parent3aeeedbb71f648211ae2efde0d0cf4b24abcefe1 (diff)
downloadgdb-885afe7b6fda4324ac445cfdd9e37630f5061dc0.zip
gdb-885afe7b6fda4324ac445cfdd9e37630f5061dc0.tar.gz
gdb-885afe7b6fda4324ac445cfdd9e37630f5061dc0.tar.bz2
* as.h (as_perror): Delete declaration.
* gdbinit.in (as_perror): Delete breakpoint. * messages.c (as_perror): Delete function. * doc/internals.texi: Remove as_perror description. * listing.c (listing_print: Don't use as_perror. * output-file.c (output_file_create, output_file_close): Likewise. * symbols.c (symbol_create, symbol_clone): Likewise. * write.c (write_contents): Likewise. * config/obj-som.c (obj_som_version, obj_som_copyright): Likewise. * config/tc-tic54x.c (tic54x_mlib): Likewise.
Diffstat (limited to 'gas/messages.c')
-rw-r--r--gas/messages.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/gas/messages.c b/gas/messages.c
index b1b94cd..21381b4 100644
--- a/gas/messages.c
+++ b/gas/messages.c
@@ -1,6 +1,6 @@
/* messages.c - error reporter -
Copyright 1987, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 2000, 2001,
- 2003, 2004, 2005
+ 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -116,24 +116,6 @@ as_show_where (void)
fprintf (stderr, "%s:%u: ", file, line);
}
-/* Like perror(3), but with more info. */
-
-void
-as_perror (const char *gripe, /* Unpunctuated error theme. */
- const char *filename)
-{
- const char *errtxt;
- int saved_errno = errno;
-
- as_show_where ();
- fprintf (stderr, gripe, filename);
- errno = saved_errno;
- errtxt = bfd_errmsg (bfd_get_error ());
- fprintf (stderr, ": %s\n", errtxt);
- errno = 0;
- bfd_set_error (bfd_error_no_error);
-}
-
/* Send to stderr a string as a warning, and locate warning
in input file(s).
Please only use this for when we have some recovery action.