diff options
| author | Keith Randall <khr@golang.org> | 2013-08-12 13:47:18 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2013-08-12 13:47:18 -0700 |
| commit | e838334beb38c20d2b4035b53ec4e3e3487844f9 (patch) | |
| tree | 3e098b463e89455884e6a15c019bee84c522e088 /src/pkg/runtime/slice.c | |
| parent | 2791ef0b6784f487738b7dbe6bda520b426131f3 (diff) | |
| download | go-e838334beb38c20d2b4035b53ec4e3e3487844f9.tar.xz | |
runtime: change textflags from numbers to symbols
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12798043
Diffstat (limited to 'src/pkg/runtime/slice.c')
| -rw-r--r-- | src/pkg/runtime/slice.c | 9 |
1 files changed, 5 insertions, 4 deletions
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) { |
