]> git.ipfire.org Git - thirdparty/gcc.git/commit
compile, runtime: make selectnbrecv return two values
authorIan Lance Taylor <iant@golang.org>
Tue, 3 Aug 2021 18:36:24 +0000 (11:36 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 3 Aug 2021 23:40:00 +0000 (16:40 -0700)
commite435e72ad713cadd661072427588ec1c777c04e3
tree7b5fc4228c17022dccb00087e230a45aedcca017
parentcbbd439a33e889a1a47b103951c53472fc8558eb
compile, runtime: make selectnbrecv return two values

The only different between selectnbrecv and selectnbrecv2 is the later
set the input pointer value by second return value from chanrecv.

So by making selectnbrecv return two values from chanrecv, we can get
rid of selectnbrecv2, the compiler can now call only selectnbrecv and
generate simpler code.

This is the gofrontend version of https://golang.org/cl/292890.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/339529
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/runtime.def
gcc/go/gofrontend/statements.cc
libgo/go/runtime/chan.go