]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: disallow combining nosplit and systemstack
authorAustin Clements <austin@google.com>
Thu, 9 Feb 2017 22:08:27 +0000 (17:08 -0500)
committerAustin Clements <austin@google.com>
Thu, 9 Feb 2017 22:27:17 +0000 (22:27 +0000)
commit450472989b318b7242d2c3d0db4c09d84727c065
tree4fd0d6e35351dee6a35d054ac01a6ab845199f50
parent23df52747d5bd8a0b74f7da7c0c2002b7141f32b
cmd/compile: disallow combining nosplit and systemstack

go:systemstack works by tweaking the stack check prologue to check
against a different bound, while go:nosplit removes the stack check
prologue entirely. Hence, they can't be used together. Make the build
fail if they are.

Change-Id: I2d180c4b1d31ff49ec193291ecdd42921d253359
Reviewed-on: https://go-review.googlesource.com/36710
Run-TryBot: Austin Clements <austin@google.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/pgen.go