daily update
[deliverable/binutils-gdb.git] / gas / listing.c
index 717ed60111c86f0559bdee76ead752908c1d2af3..1eca6475830907331cb180fa0edeb59875dc9ba5 100644 (file)
@@ -1,13 +1,13 @@
 /* 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, 2007
    Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
    GAS is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2, or (at your option)
+   the Free Software Foundation; either version 3, or (at your option)
    any later version.
 
    GAS is distributed in the hope that it will be useful,
@@ -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)
This page took 0.022804 seconds and 4 git commands to generate.