From a4855812e259f91914328659a37dc3a2582da7ba Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Thu, 8 Oct 2015 21:52:03 +1300 Subject: runtime: add a constant for the smallest possible stack frame Shared libraries on ppc64le will require a larger minimum stack frame (because the ABI mandates that the TOC pointer is available at 24(R1)). So to prepare for this, make a constant for the fixed part of a stack and use that where necessary. Change-Id: I447949f4d725003bb82e7d2cf7991c1bca5aa887 Reviewed-on: https://go-review.googlesource.com/15523 Reviewed-by: Ian Lance Taylor Run-TryBot: Michael Hudson-Doyle TryBot-Result: Gobot Gobot --- src/runtime/panic.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/runtime/panic.go') diff --git a/src/runtime/panic.go b/src/runtime/panic.go index 320c174829..24431c86dc 100644 --- a/src/runtime/panic.go +++ b/src/runtime/panic.go @@ -531,8 +531,6 @@ func throw(s string) { //uint32 runtime·panicking; var paniclk mutex -const hasLinkRegister = GOARCH == "arm" || GOARCH == "arm64" || GOARCH == "ppc64" || GOARCH == "ppc64le" - // Unwind the stack after a deferred function calls recover // after a panic. Then arrange to continue running as though // the caller of the deferred function returned normally. -- cgit v1.2.1