From f3f237f7ee009d3cbcca83c77bc4d54bcae62308 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 22 Dec 2020 22:26:43 -0800 Subject: [PATCH] compiler: remove references to slicecopy and slicestringcopy The only calls to the runtime functions were removed in CL 170005. The slicestringcopy function will be removed in the Go 1.16beta1 release. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/279932 --- gcc/go/gofrontend/MERGE | 2 +- gcc/go/gofrontend/escape.cc | 2 -- gcc/go/gofrontend/runtime.def | 8 -------- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index e67aa3622fb..fbac942ad42 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -013a4ddcae2e8b840561c4411bab87f4f0f9ef42 +d238487d5c6e0c7f12c38305060fba8b7ec3605f 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/escape.cc b/gcc/go/gofrontend/escape.cc index 8962f3f38d1..cf688740443 100644 --- a/gcc/go/gofrontend/escape.cc +++ b/gcc/go/gofrontend/escape.cc @@ -363,8 +363,6 @@ Node::op_format() const op << "append"; break; - case Runtime::SLICECOPY: - case Runtime::SLICESTRINGCOPY: case Runtime::TYPEDSLICECOPY: op << "copy"; break; diff --git a/gcc/go/gofrontend/runtime.def b/gcc/go/gofrontend/runtime.def index 7ab94a3ffbc..ec01be0afe4 100644 --- a/gcc/go/gofrontend/runtime.def +++ b/gcc/go/gofrontend/runtime.def @@ -242,14 +242,6 @@ DEF_GO_RUNTIME(DEFERRETURN, "runtime.deferreturn", P1(BOOLPTR), R0()) DEF_GO_RUNTIME(CLOSE, "runtime.closechan", P1(CHAN), R0()) -// Copy. -DEF_GO_RUNTIME(SLICECOPY, "runtime.slicecopy", - P5(POINTER, INT, POINTER, INT, UINTPTR), R1(INT)) - -// Copy from string. -DEF_GO_RUNTIME(SLICESTRINGCOPY, "runtime.slicestringcopy", - P3(POINTER, INT, STRING), R1(INT)) - // Copy of value containing pointers. DEF_GO_RUNTIME(TYPEDSLICECOPY, "runtime.typedslicecopy", P5(TYPE, POINTER, INT, POINTER, INT), R1(INT)) -- 2.30.2