diff options
author | Alan Modra <amodra@gmail.com> | 2006-09-22 11:35:14 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2006-09-22 11:35:14 +0000 |
commit | 885afe7b6fda4324ac445cfdd9e37630f5061dc0 (patch) | |
tree | 2f435abf11a454bf8ba62f2534fa2520b6b00a13 /gas/config | |
parent | 3aeeedbb71f648211ae2efde0d0cf4b24abcefe1 (diff) | |
download | gdb-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/config')
-rw-r--r-- | gas/config/obj-som.c | 20 | ||||
-rw-r--r-- | gas/config/tc-tic54x.c | 4 |
2 files changed, 9 insertions, 15 deletions
diff --git a/gas/config/obj-som.c b/gas/config/obj-som.c index 571330e..f41df58 100644 --- a/gas/config/obj-som.c +++ b/gas/config/obj-som.c @@ -1,5 +1,5 @@ /* SOM object file format. - Copyright 1993, 1994, 1998, 2000, 2002, 2003, 2004, 2005 + Copyright 1993, 1994, 1998, 2000, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -150,12 +150,9 @@ obj_som_version (int unused ATTRIBUTE_UNUSED) version_seen = 1; if (!bfd_som_attach_aux_hdr (stdoutput, VERSION_AUX_ID, version)) - { - bfd_perror (stdoutput->filename); - as_perror (_("FATAL: Attaching version header %s"), - stdoutput->filename); - exit (EXIT_FAILURE); - } + as_fatal (_("attaching version header %s: %s"), + stdoutput->filename, bfd_errmsg (bfd_get_error ())); + *input_line_pointer = c; demand_empty_rest_of_line (); } @@ -195,12 +192,9 @@ obj_som_copyright (int unused ATTRIBUTE_UNUSED) copyright_seen = 1; if (!bfd_som_attach_aux_hdr (stdoutput, COPYRIGHT_AUX_ID, copyright)) - { - bfd_perror (stdoutput->filename); - as_perror (_("FATAL: Attaching copyright header %s"), - stdoutput->filename); - exit (EXIT_FAILURE); - } + as_fatal (_("attaching copyright header %s: %s"), + stdoutput->filename, bfd_errmsg (bfd_get_error ())); + *input_line_pointer = c; demand_empty_rest_of_line (); } diff --git a/gas/config/tc-tic54x.c b/gas/config/tc-tic54x.c index b9f4fcf..412473b 100644 --- a/gas/config/tc-tic54x.c +++ b/gas/config/tc-tic54x.c @@ -2512,8 +2512,8 @@ tic54x_mlib (ignore) abfd = bfd_openr (path, NULL); if (!abfd) { - as_bad (_("Can't open macro library file '%s' for reading."), path); - as_perror ("%s", path); + as_bad (_("can't open macro library file '%s' for reading: %s"), + path, bfd_errmsg (bfd_get_error ())); ignore_rest_of_line (); return; } |