aboutsummaryrefslogtreecommitdiff
path: root/test/nosplit.go
diff options
context:
space:
mode:
authorDavid Chase <drchase@google.com>2015-10-19 11:36:07 -0400
committerDavid Chase <drchase@google.com>2015-10-23 19:32:57 +0000
commite99dd520665000dfeb848fb4ecd381314b8fe61b (patch)
treed73d4bb6f2d2d2fcd362ef25b1a47673aaeefc78 /test/nosplit.go
parent3abb8441087dbc1f08320c40a750ac1a7209b9fe (diff)
downloadgo-e99dd520665000dfeb848fb4ecd381314b8fe61b.tar.gz
go-e99dd520665000dfeb848fb4ecd381314b8fe61b.zip
[dev.ssa] cmd/compile: enhance SSA filtering, add OpConvert
Modified GOSSA{HASH.PKG} environment variable filters to make it easier to make/run with all SSA for testing. Disable attempts at SSA for architectures that are not amd64 (avoid spurious errors/unimplementeds.) Removed easy out for unimplemented features. Add convert op for proper liveness in presence of uintptr to/from unsafe.Pointer conversions. Tweaked stack sizes to get a pass on windows; 1024 instead 768, was observed to pass at least once. Change-Id: Ida3800afcda67d529e3b1cf48ca4a3f0fa48b2c5 Reviewed-on: https://go-review.googlesource.com/16201 Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: David Chase <drchase@google.com>
Diffstat (limited to 'test/nosplit.go')
-rw-r--r--test/nosplit.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/nosplit.go b/test/nosplit.go
index e5c2a9f30e..70e8fced86 100644
--- a/test/nosplit.go
+++ b/test/nosplit.go
@@ -9,6 +9,7 @@ package main
import (
"bytes"
+ "cmd/internal/obj"
"fmt"
"io/ioutil"
"log"
@@ -285,12 +286,13 @@ TestCases:
// Instead of rewriting the test cases above, adjust
// the first stack frame to use up the extra bytes.
if i == 0 {
- size += 512 - 128
+ size += (obj.StackGuard - 128) - 128
// Noopt builds have a larger stackguard.
- // See ../cmd/dist/buildruntime.go:stackGuardMultiplier
+ // See ../src/cmd/dist/buildruntime.go:stackGuardMultiplier
+ // This increase is included in obj.StackGuard
for _, s := range strings.Split(os.Getenv("GO_GCFLAGS"), " ") {
if s == "-N" {
- size += 640
+ size += obj.StackGuard
}
}
}