aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/obj/textflag.go
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/cmd/internal/obj/textflag.go
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/cmd/internal/obj/textflag.go')
-rw-r--r--src/cmd/internal/obj/textflag.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/internal/obj/textflag.go b/src/cmd/internal/obj/textflag.go
index 77766c9b3f..3d3b3b8518 100644
--- a/src/cmd/internal/obj/textflag.go
+++ b/src/cmd/internal/obj/textflag.go
@@ -39,4 +39,9 @@ const (
// Allocate a word of thread local storage and store the offset from the
// thread local base to the thread local storage in this variable.
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.
+ NOFRAME = 512
)