aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-03-06 00:17:43 +0000
committerIan Lance Taylor <iant@google.com>2008-03-06 00:17:43 +0000
commit7dfac99ff1ebec56f81c60747e2ac9b0f86fa588 (patch)
tree27aa6710fce0869bd4b2043633add9c62395fd2b /gold
parent13670ee6693f100f4b0b11b3a700d129b9bd67be (diff)
downloadgdb-7dfac99ff1ebec56f81c60747e2ac9b0f86fa588.zip
gdb-7dfac99ff1ebec56f81c60747e2ac9b0f86fa588.tar.gz
gdb-7dfac99ff1ebec56f81c60747e2ac9b0f86fa588.tar.bz2
Don't use the user-specified output format unless the user actually
specified one.
Diffstat (limited to 'gold')
-rw-r--r--gold/parameters.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/parameters.cc b/gold/parameters.cc
index f240c1d..9c57ef3 100644
--- a/gold/parameters.cc
+++ b/gold/parameters.cc
@@ -74,7 +74,7 @@ const Target&
Parameters::default_target() const
{
gold_assert(this->options_valid());
- if (this->options().oformat() != NULL)
+ if (this->options().user_set_oformat())
{
const Target* target
= select_target_by_name(this->options().oformat());