From e838334beb38c20d2b4035b53ec4e3e3487844f9 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Mon, 12 Aug 2013 13:47:18 -0700 Subject: runtime: change textflags from numbers to symbols R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/12798043 --- src/pkg/runtime/slice.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/pkg/runtime/slice.c') diff --git a/src/pkg/runtime/slice.c b/src/pkg/runtime/slice.c index 58086b61c7..abe4cfb5f9 100644 --- a/src/pkg/runtime/slice.c +++ b/src/pkg/runtime/slice.c @@ -8,6 +8,7 @@ #include "typekind.h" #include "malloc.h" #include "race.h" +#include "../../cmd/ld/textflag.h" enum { @@ -57,7 +58,7 @@ makeslice1(SliceType *t, intgo len, intgo cap, Slice *ret) } // appendslice(type *Type, x, y, []T) []T -#pragma textflag 7 +#pragma textflag NOSPLIT void runtime·appendslice(SliceType *t, Slice x, Slice y, Slice ret) { @@ -114,7 +115,7 @@ runtime·appendslice(SliceType *t, Slice x, Slice y, Slice ret) // appendstr([]byte, string) []byte -#pragma textflag 7 +#pragma textflag NOSPLIT void runtime·appendstr(SliceType *t, Slice x, String y, Slice ret) { @@ -217,7 +218,7 @@ growslice1(SliceType *t, Slice x, intgo newcap, Slice *ret) } // copy(to any, fr any, wid uintptr) int -#pragma textflag 7 +#pragma textflag NOSPLIT void runtime·copy(Slice to, Slice fm, uintptr width, intgo ret) { @@ -260,7 +261,7 @@ out: } } -#pragma textflag 7 +#pragma textflag NOSPLIT void runtime·slicestringcopy(Slice to, String fm, intgo ret) { -- cgit v1.3-5-g9baa