Fix compilation error in mips.cc with some versions of GCC.
authorArtemiy Volkov <artemiyv@acm.org>
Thu, 9 Jun 2016 18:39:57 +0000 (11:39 -0700)
committerCary Coutant <ccoutant@gmail.com>
Thu, 9 Jun 2016 18:39:57 +0000 (11:39 -0700)
gold/
* mips.cc (Mips_output_data_got::do_write): Add missing template
args via typedef.

gold/ChangeLog
gold/mips.cc

index 90b10e55aa8057e96c32cf90544660473919a24a..5171ad0a99b925446e84ee54a5afce9706781992 100644 (file)
@@ -1,3 +1,8 @@
+2016-06-09  Artemiy Volkov  <artemiyv@acm.org>
+
+       * mips.cc (Mips_output_data_got::do_write): Add missing template
+       args via typedef.
+
 2016-05-30  Marcin Koƛcielnicki  <koriakin@0x04.net>
 
        PR/19960
index b8c74d0a61a5f4ce58d0d349aa86f75a0b7fc40e..e8a639b982833bf662dd485d0aee23e17f707a37 100644 (file)
@@ -6130,6 +6130,9 @@ template<int size, bool big_endian>
 void
 Mips_output_data_got<size, big_endian>::do_write(Output_file* of)
 {
+  typedef Unordered_set<Mips_symbol<size>*, Mips_symbol_hash<size> >
+      Mips_stubs_entry_set;
+
   // Call parent to write out GOT.
   Output_data_got<size, big_endian>::do_write(of);
 
@@ -6142,7 +6145,7 @@ Mips_output_data_got<size, big_endian>::do_write(Output_file* of)
   this->got_view_ = oview;
 
   // Write lazy stub addresses.
-  for (typename Unordered_set<Mips_symbol<size>*>::iterator
+  for (typename Mips_stubs_entry_set::iterator
        p = this->master_got_info_->global_got_symbols().begin();
        p != this->master_got_info_->global_got_symbols().end();
        ++p)
@@ -6159,7 +6162,7 @@ Mips_output_data_got<size, big_endian>::do_write(Output_file* of)
     }
 
   // Add +1 to GGA_NONE nonzero MIPS16 and microMIPS entries.
-  for (typename Unordered_set<Mips_symbol<size>*>::iterator
+  for (typename Mips_stubs_entry_set::iterator
        p = this->master_got_info_->global_got_symbols().begin();
        p != this->master_got_info_->global_got_symbols().end();
        ++p)