Skip to content

Commit 604e484

Browse files
committed
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>
1 parent faeda66 commit 604e484

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/cmd/internal/obj/ppc64/obj9.go

+2-5
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym) {
474474

475475
q = p
476476

477-
if ctxt.Flag_shared && cursym.Name != "runtime.duffzero" && cursym.Name != "runtime.duffcopy" && cursym.Name != "runtime.stackBarrier" {
477+
if ctxt.Flag_shared && cursym.Name != "runtime.duffzero" && cursym.Name != "runtime.duffcopy" {
478478
// When compiling Go into PIC, all functions must start
479479
// with instructions to load the TOC pointer into r2:
480480
//
@@ -485,10 +485,7 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym) {
485485
// but it's a bit subtle. However, it is both safe and
486486
// necessary to leave the prologue off duffzero and
487487
// duffcopy as we rely on being able to jump to a specific
488-
// instruction offset for them, and stackBarrier is only
489-
// ever called from an overwritten LR-save slot on the
490-
// stack (when r12 will not be remotely the right thing)
491-
// but fortunately does not access global data.
488+
// instruction offset for them.
492489
//
493490
// These are AWORDS because there is no (afaict) way to
494491
// generate the addis instruction except as part of the

0 commit comments

Comments
 (0)