compiler: sort packages in export data more deterministically
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 9 Apr 2019 04:36:51 +0000 (04:36 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 9 Apr 2019 04:36:51 +0000 (04:36 +0000)
commit3fa176b767e14e1d2491775978afac3e87892d1d
tree35478f4f4ff092374f748479debcda06b96dd6dd
parentad7d66abe909d867c032019b18a4ef20f22af368
compiler: sort packages in export data more deterministically

    We can have multiple packages with the same name, so also sort by pkgpath.
    To avoid an inconsistent sort, sort by symbol and pointer address if
    we somehow get two different packages with the same name and pkgpath.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/171032

From-SVN: r270220
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/export.cc