GCC PR 68141 points out a minor performance problem in the code in gcc/go/gofrontend/import-archive.cc: in the Archive_iterator comparison methods, the type is not passed by reference. This patch fixes it. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline.
Ian
Index: gcc/go/gofrontend/MERGE =================================================================== --- gcc/go/gofrontend/MERGE (revision 230685) +++ gcc/go/gofrontend/MERGE (working copy) @@ -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: gcc/go/gofrontend/import-archive.cc =================================================================== --- gcc/go/gofrontend/import-archive.cc (revision 230463) +++ gcc/go/gofrontend/import-archive.cc (working copy) @@ -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: