From 1fa5fc7408d05710cb63a5e91c5df6c787b51019 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 21 Dec 2020 14:58:14 -0800 Subject: runtime: remove scase.releasetime field This is the gofrontend version of https://golang.org/cl/245122. Original CL description: selectgo will report at most one block event, so there's no need to keep a releasetime for every select case. It suffices to simply track the releasetime of the case responsible for the wakeup. Updates golang/go#40410. This is being brought over to gofrontend as a step toward upgrading to Go1.16beta1. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/279732 --- gcc/go/gofrontend/MERGE | 2 +- gcc/go/gofrontend/types.cc | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'gcc') diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 81deef2..bfc7856 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -f9e44c6e510df9f047dbe28eb5fa19642e350f8f +c8456995b0118a92820c6c1d8f996d4b1adf55c2 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/types.cc b/gcc/go/gofrontend/types.cc index ecb93b0..12e7830 100644 --- a/gcc/go/gofrontend/types.cc +++ b/gcc/go/gofrontend/types.cc @@ -8908,11 +8908,10 @@ Channel_type::select_case_type() Type* uint16_type = Type::lookup_integer_type("uint16"); Type* int64_type = Type::lookup_integer_type("int64"); scase_type = - Type::make_builtin_struct_type(4, + Type::make_builtin_struct_type(3, "c", unsafe_pointer_type, "elem", unsafe_pointer_type, - "kind", uint16_type, - "releasetime", int64_type); + "kind", uint16_type); scase_type->set_is_struct_incomparable(); } return scase_type; -- cgit v1.1