[dev.ssa] Merge remote-tracking branch 'origin/master' into ssamerge

(Last?) Semi-regular merge from tip to dev.ssa.

Conflicts:
	src/cmd/compile/internal/gc/closure.go
	src/cmd/compile/internal/gc/gsubr.go
	src/cmd/compile/internal/gc/lex.go
	src/cmd/compile/internal/gc/pgen.go
	src/cmd/compile/internal/gc/syntax.go
	src/cmd/compile/internal/gc/walk.go
	src/cmd/internal/obj/pass.go

Change-Id: Ib5ea8bf74d420f4902a9c6208761be9f22371ae7
This commit is contained in:
Keith Randall 2016-02-29 13:31:48 -08:00
commit 4fffd4569d
240 changed files with 4682 additions and 3188 deletions

View file

@ -475,7 +475,7 @@ func staticassign(l *Node, r *Node, out **NodeList) bool {
break
case OCLOSURE:
if r.Func.Cvars == nil {
if len(r.Func.Cvars.Slice()) == 0 {
// Closures with no captured variables are globals,
// so the assignment can be done at link time.
n := *l