PR ld/6430
[deliverable/binutils-gdb.git] / gold / parameters.h
index 3b10228706fa03cd6589cc621a2f242bacd9dd7d..ce165dd9d14e88d9b418bee0708f2411f522d87f 100644 (file)
@@ -1,6 +1,6 @@
 // parameters.h -- general parameters for a link using gold  -*- C++ -*-
 
-// Copyright 2006, 2007 Free Software Foundation, Inc.
+// Copyright 2006, 2007, 2008 Free Software Foundation, Inc.
 // Written by Ian Lance Taylor <iant@google.com>.
 
 // This file is part of gold.
@@ -116,7 +116,9 @@ class Parameters
   int
   debug() const
   {
-    gold_assert(this->options_valid());
+    // This can be called before the options are set up.
+    if (!this->options_valid())
+      return 0;
     return debug_;
   }
 
This page took 0.023213 seconds and 4 git commands to generate.