gas attempting to assemble non-existent file

Alan Modra amodra@bigpond.net.au
Wed Sep 13 08:07:00 GMT 2006


On Wed, Sep 13, 2006 at 07:56:32AM +0100, Jan Beulich wrote:
> >@@ -248,10 +246,8 @@ input_file_give_next_buffer (char *where
> >   else
> >     {
> >       if (fclose (f_in))
> >-	{
> >-	  bfd_set_error (bfd_error_system_call);
> >-	  as_perror (_("Can't close %s"), file_name);
> >-	}
> >+	as_bad (_("can't close %s: %s"), file_name, xstrerror (errno));
> >+
> >       f_in = (FILE *) 0;
> >       return_value = 0;
> >     }
> 
> Couldn't this be just as_warn()?

I wrote it that way at first, then decided as_bad is probably better.
An error from fclose might be due to failure to flush file buffers.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list