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

Change-Id: I425ff0cdbf44f2987fb5278ca7324b0127523cb4
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/390874
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
diff --git a/go/types.cc b/go/types.cc
index 8267f15..3de0bd3 100644
--- a/go/types.cc
+++ b/go/types.cc
@@ -5303,7 +5303,7 @@
   if (results != NULL)
     {
       exp->write_c_string(" ");
-      if (results->size() == 1 && results->begin()->name().empty())
+      if (results->size() == 1)
 	exp->write_type(results->begin()->type());
       else
 	{