diff options
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index ba67da8849a..2268b33e9ca 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2357,6 +2357,8 @@ finalize (void) fatal_error ("error writing to %s: %m", asm_file_name); if (fclose (asm_out_file) != 0) fatal_error ("error closing %s: %m", asm_file_name); + if (flag_wpa) + unlink_if_ordinary (asm_file_name); } statistics_fini (); |