X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gas%2Foutput-file.c;h=573598101c33ffe9adebf30b21b1e27e8424ad68;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=29497e110e4eedd7bbeec2fbf9d4dbd371b38162;hpb=219d1afa89d0d53ca93a684cac341f16470f3ca0;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/output-file.c b/gas/output-file.c index 29497e110e..573598101c 100644 --- a/gas/output-file.c +++ b/gas/output-file.c @@ -1,5 +1,5 @@ /* output-file.c - Deal with the output file - Copyright (C) 1987-2018 Free Software Foundation, Inc. + Copyright (C) 1987-2020 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -58,7 +58,7 @@ output_file_close (const char *filename) return; /* Close the bfd. */ - if (had_errors ()) + if (!flag_always_generate_output && had_errors ()) res = bfd_cache_close_all (); else res = bfd_close (stdoutput);