In the Go frontend, all calls to the runtime functions slicecopy and slicestringcopy were removed in https://golang.org/cl/170005. Remove the remaining mentions. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline.
Ian
b26699c53b257d3354a4cfd3fc9174104f116154 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))