public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6921] compiler: mark Call_expression multiple results as a result struct
@ 2023-03-29  0:31 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2023-03-29  0:31 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:aa8f4242efc99f24de73c59d53996f28db28c13f

commit r13-6921-gaa8f4242efc99f24de73c59d53996f28db28c13f
Author: Ian Lance Taylor <iant@golang.org>
Date:   Tue Mar 28 13:01:28 2023 -0700

    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

Diff:
---
 gcc/go/gofrontend/MERGE          | 2 +-
 gcc/go/gofrontend/expressions.cc | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index 8c8025dec2e..addef6f8f51 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 53901306ef7..4ac55af7433 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_);
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-29  0:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-29  0:31 [gcc r13-6921] compiler: mark Call_expression multiple results as a result struct Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).