* script-sections.cc (Script_sections::place_orphan): Initialize
authorIan Lance Taylor <ian@airs.com>
Wed, 18 Jun 2008 04:15:52 +0000 (04:15 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 18 Jun 2008 04:15:52 +0000 (04:15 +0000)
local variable exact.

gold/ChangeLog
gold/script-sections.cc

index c0b33910783e531ec4e2c1132caee1c9d2a10684..9ee1d8dec80f07364362aec1638f44632295041c 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-17  Ian Lance Taylor  <iant@google.com>
+
+       * script-sections.cc (Script_sections::place_orphan): Initialize
+       local variable exact.
+
 2008-06-13  David Edelsohn  <edelsohn@gnu.org>
 
        * powerpc.cc (Output_data_plt_powerpc::do_write): 8 + 4 = 0xC.
        * symtab.h (class Symbol): Update declarations.
        (class Sized_symbol): Likewise.
        * resolve.cc (Symbol::override_version): New function.
-       (Symbol::override_base: Call override_version.
+       (Symbol::override_base): Call override_version.
        (Symbol::override_base_with_special): Likewise.
        * testsuite/ver_script_8.script: New file.
        * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_8.
index 7f3a4daa9cd57a087c1d76506675ce5a501fb325..4891ac7d93c245b633ed898c51ecf76a4b1c4d2d 100644 (file)
@@ -2423,7 +2423,7 @@ Script_sections::place_orphan(Output_section* os)
        p != this->sections_elements_->end();
        ++p)
     {
-      bool exact;
+      bool exact = false;
       if ((*p)->place_orphan_here(os, &exact))
        {
          place = p;