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/write.c | |
parent | 3aeeedbb71f648211ae2efde0d0cf4b24abcefe1 (diff) | |
download | fsf-binutils-gdb-885afe7b6fda4324ac445cfdd9e37630f5061dc0.zip fsf-binutils-gdb-885afe7b6fda4324ac445cfdd9e37630f5061dc0.tar.gz fsf-binutils-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/write.c')
-rw-r--r-- | gas/write.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/gas/write.c b/gas/write.c index 9e28a6f..66a05a5 100644 --- a/gas/write.c +++ b/gas/write.c @@ -1014,11 +1014,8 @@ write_contents (bfd *abfd ATTRIBUTE_UNUSED, f->fr_literal, (file_ptr) offset, (bfd_size_type) f->fr_fix); if (!x) - { - bfd_perror (stdoutput->filename); - as_perror (_("FATAL: Can't write %s"), stdoutput->filename); - exit (EXIT_FAILURE); - } + as_fatal (_("can't write %s: %s"), stdoutput->filename, + bfd_errmsg (bfd_get_error ())); offset += f->fr_fix; } fill_literal = f->fr_literal + f->fr_fix; @@ -1038,12 +1035,8 @@ write_contents (bfd *abfd ATTRIBUTE_UNUSED, (file_ptr) offset, (bfd_size_type) fill_size); if (!x) - { - bfd_perror (stdoutput->filename); - as_perror (_("FATAL: Can't write %s"), - stdoutput->filename); - exit (EXIT_FAILURE); - } + as_fatal (_("can't write %s: %s"), stdoutput->filename, + bfd_errmsg (bfd_get_error ())); offset += fill_size; } } |