compiler: ignore function type result name in export data
commit2858e2afcb0a6553a222e724d8426451364ee755
authorIan Lance Taylor <iant@golang.org>
Tue, 8 Mar 2022 21:30:02 +0000 (8 13:30 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 8 Mar 2022 21:53:59 +0000 (8 13:53 -0800)
tree1a2aec15b29142b96164fd030b0747bcb0396484
parent6f748bc1e7fbae876ff47e3abe477253a0e70c09
compiler: ignore function type result name in export data

This change ensures that we never output a result name in the export
data if there is only a single result.  Previously we would output a ?
if the single result had a name.  That made the output unstable,
because the hashing ignores the result name, so whether we output a ?
or not depended on how equal hash elements were handled.

For https://gcc.gnu.org/PR104832

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/390874
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/types.cc