]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Workaround bug in gcc 4.0.3 STL.
authorIan Lance Taylor <iant@google.com>
Thu, 15 Nov 2007 20:41:19 +0000 (20:41 +0000)
committerIan Lance Taylor <iant@google.com>
Thu, 15 Nov 2007 20:41:19 +0000 (20:41 +0000)
gold/symtab.cc

index c918db329334234623952cc6f1550195337e627b..31dcc7f08a9e60ee6b781db2303147ce2c1d9427 100644 (file)
@@ -1890,9 +1890,10 @@ Symbol_table::detect_odr_violations(const char* output_file_name) const
       // We use a sorted set so the output is deterministic.
       std::set<std::string> line_nums;
 
-      Unordered_set<Symbol_location, Symbol_location_hash>::const_iterator
-       locs;
-      for (locs = it->second.begin(); locs != it->second.end(); ++locs)
+      for (Unordered_set<Symbol_location, Symbol_location_hash>::const_iterator
+               locs = it->second.begin();
+           locs != it->second.end();
+           ++locs)
         {
          // We need to lock the object in order to read it.  This
          // means that we can not run inside a Task.  If we want to