]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR go/68141
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Nov 2015 23:44:25 +0000 (23:44 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Nov 2015 23:44:25 +0000 (23:44 +0000)
    compiler: Use references in Archive_iterator comparison functions.

    Fixes minor performance problem pointed out in
    https://gcc.gnu.org/PR68141 .

    Reviewed-on: https://go-review.googlesource.com/17153

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230689 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/go/gofrontend/MERGE
gcc/go/gofrontend/import-archive.cc

index 186385433d92a284955a314be309d62782ec4cc3..3ccd3fc3039f30f8bd9c90b69c2dbb3121d1716f 100644 (file)
@@ -1,4 +1,4 @@
-128d5b14b8ab967cb61c01a9b2c596bda7d04c63
+f79db38cf3484b63f7807abef05eecb23e9d0806
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 43057558228c4ecb65268de22bace67e15223f02..7d7f426059de4cdaca56cf75d1002082462a2653 100644 (file)
@@ -468,11 +468,11 @@ class Archive_iterator
   }
 
   bool
-  operator==(const Archive_iterator p) const
+  operator==(const Archive_iterator& p) const
   { return this->off_ == p->off; }
 
   bool
-  operator!=(const Archive_iterator p) const
+  operator!=(const Archive_iterator& p) const
   { return this->off_ != p->off; }
 
  private: