aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2023-03-28 13:01:28 -0700
committerIan Lance Taylor <iant@golang.org>2023-03-28 17:31:19 -0700
commitaa8f4242efc99f24de73c59d53996f28db28c13f (patch)
tree1deecdcfbf185c7044bc861d0ace51285c96cb62 /gcc/go
parent579cdc1e44b316166ebfdfbcff14d41101003aec (diff)
downloadgcc-aa8f4242efc99f24de73c59d53996f28db28c13f.zip
gcc-aa8f4242efc99f24de73c59d53996f28db28c13f.tar.gz
gcc-aa8f4242efc99f24de73c59d53996f28db28c13f.tar.bz2
compiler: mark Call_expression multiple results as a result struct
In https://go.dev/cl/343873 we stopped padding zero-sized trailing fields in functions that return multiple results where the last result is zero-sized. This CL makes the corresponding change on the caller side. The test case is https://go.dev/cl/479898. Fixes golang/go#55242 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/479955
Diffstat (limited to 'gcc/go')
-rw-r--r--gcc/go/gofrontend/MERGE2
-rw-r--r--gcc/go/gofrontend/expressions.cc1
2 files changed, 2 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index 8c8025d..addef6f 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-9ffd6e679ff0e3a908d0ec2ed5c6efa1de827c3f
+63ba7dd52f2cc49dab4b70ac81309296a920d4dc
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc
index 5390130..4ac55af 100644
--- a/gcc/go/gofrontend/expressions.cc
+++ b/gcc/go/gofrontend/expressions.cc
@@ -11267,6 +11267,7 @@ Call_expression::do_lower(Gogo* gogo, Named_object* function,
Struct_type* st = Type::make_struct_type(sfl, loc);
st->set_is_struct_incomparable();
+ st->set_is_results_struct();
this->call_temp_ = Statement::make_temporary(st, NULL, loc);
inserter->insert(this->call_temp_);
}