diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2017-03-16 00:24:51 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2017-03-17 04:46:58 +0000 |
| commit | 604e4841d6bd0a2c207444481928053d1ad3b822 (patch) | |
| tree | 82378baa1263b326defc46fb62a2f6cadf0ba652 /src/cmd | |
| parent | faeda66c60dbc080720b30d42acbf67c4541e053 (diff) | |
| download | go-604e4841d6bd0a2c207444481928053d1ad3b822.tar.xz | |
cmd/internal/obj/ppc64: remove stackbarrier function check
Stack barriers were removed in CL 36620.
Change-Id: If124d65a73a7b344a42be2a4b386a14d7a0a428b
Reviewed-on: https://go-review.googlesource.com/38169
Reviewed-by: Michael Hudson-Doyle <michael.hudson@canonical.com>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/cmd')
| -rw-r--r-- | src/cmd/internal/obj/ppc64/obj9.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cmd/internal/obj/ppc64/obj9.go b/src/cmd/internal/obj/ppc64/obj9.go index 7668ddd1fc..7ad754b77e 100644 --- a/src/cmd/internal/obj/ppc64/obj9.go +++ b/src/cmd/internal/obj/ppc64/obj9.go @@ -474,7 +474,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym) { q = p - if ctxt.Flag_shared && cursym.Name != "runtime.duffzero" && cursym.Name != "runtime.duffcopy" && cursym.Name != "runtime.stackBarrier" { + if ctxt.Flag_shared && cursym.Name != "runtime.duffzero" && cursym.Name != "runtime.duffcopy" { // When compiling Go into PIC, all functions must start // with instructions to load the TOC pointer into r2: // @@ -485,10 +485,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym) { // but it's a bit subtle. However, it is both safe and // necessary to leave the prologue off duffzero and // duffcopy as we rely on being able to jump to a specific - // instruction offset for them, and stackBarrier is only - // ever called from an overwritten LR-save slot on the - // stack (when r12 will not be remotely the right thing) - // but fortunately does not access global data. + // instruction offset for them. // // These are AWORDS because there is no (afaict) way to // generate the addis instruction except as part of the |
