public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/casm-state-v2)] Fix it.
@ 2021-09-10  9:29 Martin Liska
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2021-09-10  9:29 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:099ebfcd52dc95d9b84595b8d24fb75a94a2aebd

commit 099ebfcd52dc95d9b84595b8d24fb75a94a2aebd
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Sep 9 14:55:47 2021 +0200

    Fix it.

Diff:
---
 gcc/toplev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/toplev.c b/gcc/toplev.c
index 8d525e3a267..fcc7b39f624 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2093,6 +2093,7 @@ finalize (bool no_backend)
 	fatal_error (input_location, "error writing to %s: %m", asm_file_name);
       if (fclose (casm->out_file) != 0)
 	fatal_error (input_location, "error closing %s: %m", asm_file_name);
+      casm->out_file = NULL;
     }
 
   if (stack_usage_file)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/users/marxin/heads/casm-state-v2)] Fix it.
@ 2021-09-09 13:00 Martin Liska
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2021-09-09 13:00 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a09433b4be7385b5704160d4a90517a3c45a0893

commit a09433b4be7385b5704160d4a90517a3c45a0893
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Sep 9 14:55:47 2021 +0200

    Fix it.

Diff:
---
 gcc/toplev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/toplev.c b/gcc/toplev.c
index 8d525e3a267..fcc7b39f624 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2093,6 +2093,7 @@ finalize (bool no_backend)
 	fatal_error (input_location, "error writing to %s: %m", asm_file_name);
       if (fclose (casm->out_file) != 0)
 	fatal_error (input_location, "error closing %s: %m", asm_file_name);
+      casm->out_file = NULL;
     }
 
   if (stack_usage_file)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-10  9:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-10  9:29 [gcc(refs/users/marxin/heads/casm-state-v2)] Fix it Martin Liska
  -- strict thread matches above, loose matches on Subject: below --
2021-09-09 13:00 Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).