aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/textflag.h
diff options
context:
space:
mode:
authorMichael Hudson-Doyle <michael.hudson@canonical.com>2015-10-09 12:44:27 +1300
committerMichael Hudson-Doyle <michael.hudson@canonical.com>2015-10-18 22:13:30 +0000
commit45c06b27a44a65c219a7445278b129c868332a6c (patch)
treea004227041b6834fb5a23bb6bee0f559f1d62415 /src/runtime/textflag.h
parentd0c9b40964f1951d2684545f1a6df64be899d26d (diff)
downloadgo-45c06b27a44a65c219a7445278b129c868332a6c.tar.gz
go-45c06b27a44a65c219a7445278b129c868332a6c.zip
cmd/internal/obj, runtime: add NOFRAME flag to suppress stack frame set up on ppc64x
Replace the confusing game where a frame size of $-8 would suppress the implicit setting up of a stack frame with a nice explicit flag. The code to set up the function prologue is still a little confusing but better than it was. Change-Id: I1d49278ff42c6bc734ebfb079998b32bc53f8d9a Reviewed-on: https://go-review.googlesource.com/15670 Reviewed-by: Minux Ma <minux@golang.org>
Diffstat (limited to 'src/runtime/textflag.h')
-rw-r--r--src/runtime/textflag.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/textflag.h b/src/runtime/textflag.h
index f2690c938e..dbf3d9977c 100644
--- a/src/runtime/textflag.h
+++ b/src/runtime/textflag.h
@@ -24,3 +24,7 @@
// Allocate a word of thread local storage and store the offset from the
// thread local base to the thread local storage in this variable.
#define TLSBSS 256
+// Do not insert instructions to allocate a stack frame for this function.
+// Only valid on functions that declare a frame size of 0.
+// TODO(mwhudson): only implemented for ppc64x at present.
+#define NOFRAME 512