]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/obj/ppc64: remove stackbarrier function check
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 16 Mar 2017 07:24:51 +0000 (00:24 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 17 Mar 2017 04:46:58 +0000 (04:46 +0000)
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>
src/cmd/internal/obj/ppc64/obj9.go

index 7668ddd1fc7a81cafffa1ffa3315cb8d11634748..7ad754b77e37356f8f78544c1835c8efa65cb93d 100644 (file)
@@ -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