diff options
author | Ian Lance Taylor <iant@google.com> | 2007-11-28 19:39:40 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-11-28 19:39:40 +0000 |
commit | 2d6840917d290e343c5acfb908c765ea0559c757 (patch) | |
tree | e325a6e4b6a85f872142400df4dd9ee70cdbfeff /gold/gold.cc | |
parent | ef04e3921e25e1a434585ca2ae26dd0ca1ae1b1b (diff) | |
download | fsf-binutils-gdb-2d6840917d290e343c5acfb908c765ea0559c757.zip fsf-binutils-gdb-2d6840917d290e343c5acfb908c765ea0559c757.tar.gz fsf-binutils-gdb-2d6840917d290e343c5acfb908c765ea0559c757.tar.bz2 |
Don't try to delete the output file if we don't know its name yet.
Diffstat (limited to 'gold/gold.cc')
-rw-r--r-- | gold/gold.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/gold.cc b/gold/gold.cc index 9baebaf..0b7c2ec 100644 --- a/gold/gold.cc +++ b/gold/gold.cc @@ -47,7 +47,7 @@ const char* program_name; void gold_exit(bool status) { - if (!status && parameters != NULL) + if (!status && parameters != NULL && parameters->options_valid()) unlink_if_ordinary(parameters->output_file_name()); exit(status ? EXIT_SUCCESS : EXIT_FAILURE); } |