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/panic.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/panic.c')
| -rw-r--r-- | src/pkg/runtime/panic.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pkg/runtime/panic.c b/src/pkg/runtime/panic.c index 78b3068749..abfa1d4d32 100644 --- a/src/pkg/runtime/panic.c +++ b/src/pkg/runtime/panic.c @@ -6,6 +6,7 @@ #include "arch_GOARCH.h" #include "stack.h" #include "malloc.h" +#include "../../cmd/ld/textflag.h" // Code related to defer, panic and recover. @@ -122,7 +123,7 @@ freedefer(Defer *d) // are available sequentially after &fn; they would not be // copied if a stack split occurred. It's OK for this to call // functions that split the stack. -#pragma textflag 7 +#pragma textflag NOSPLIT uintptr runtime·deferproc(int32 siz, FuncVal *fn, ...) { @@ -161,7 +162,7 @@ runtime·deferproc(int32 siz, FuncVal *fn, ...) // an argument frame size. deferreturn is a very special function, // and if the runtime ever asks for its frame size, that means // the traceback routines are probably broken. -#pragma textflag 7 +#pragma textflag NOSPLIT void runtime·deferreturn(uintptr arg0, ...) { @@ -332,7 +333,7 @@ runtime·unwindstack(G *gp, byte *sp) // The implementation of the predeclared function recover. // Cannot split the stack because it needs to reliably // find the stack segment of its caller. -#pragma textflag 7 +#pragma textflag NOSPLIT void runtime·recover(byte *argp, Eface ret) { |
