diff options
author | Alan Modra <amodra@bigpond.net.au> | 2006-09-22 11:35:14 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2006-09-22 11:35:14 +0000 |
commit | a3e413fd8cf73faceb6f7be85d528d50361a7a1f (patch) | |
tree | dabe2810f5b2139d723a8f3215bac644faf95289 /gas/listing.c | |
parent | c3d86d031d83ca0e7524c64dcb12bd5f578dd7ac (diff) | |
download | binutils-redhat-a3e413fd8cf73faceb6f7be85d528d50361a7a1f.tar.gz |
* 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/listing.c')
-rw-r--r-- | gas/listing.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gas/listing.c b/gas/listing.c index 717ed60111..1b55cbf639 100644 --- a/gas/listing.c +++ b/gas/listing.c @@ -1,6 +1,6 @@ /* listing.c - maintain assembly listings Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001, 2002, 2003, 2005 + 2001, 2002, 2003, 2005, 2006 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -1076,8 +1076,7 @@ listing_print (char *name) using_stdout = 0; else { - bfd_set_error (bfd_error_system_call); - as_perror (_("can't open list file: %s"), name); + as_warn (_("can't open %s: %s"), name, xstrerror (errno)); list_file = stdout; using_stdout = 1; } @@ -1095,10 +1094,7 @@ listing_print (char *name) if (! using_stdout) { if (fclose (list_file) == EOF) - { - bfd_set_error (bfd_error_system_call); - as_perror (_("error closing list file: %s"), name); - } + as_warn (_("can't close %s: %s"), name, xstrerror (errno)); } if (last_open_file) |