]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: enable -G=3 by default
authorMatthew Dempsky <mdempsky@google.com>
Thu, 19 Aug 2021 22:53:13 +0000 (15:53 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Sat, 21 Aug 2021 00:24:02 +0000 (00:24 +0000)
commitc9912780ab3ecea3c685bfc8bec229c0d2b09317
treecbd4c6664a7398e859ce687cd233f82c3a39fa0b
parent97d17dc02398730822abba75a3d3ae26c0f3c0fd
cmd/compile: enable -G=3 by default

This CL changes cmd/compile's -G flag's default from 0 to 3, which
enables use of the new types2 type checker and support for type
parameters. The old type checker is still available with
-gcflags=all=-G=0.

The CL also updates the regress test harness to account for the change
in default behavior (e.g., to expect known types2 changes/failures).
However, the -G=0 mode is still being tested for now.

Copy of CL 340914 by danscales@, minus the cmd/internal/objabi.AbsFile
change (handled instead by CL 343731) and rebased to master branch.

Updates #43651.

Change-Id: I1f62d6c0a3ff245e15c5c0e8f3d922129fdd4f29
Reviewed-on: https://go-review.googlesource.com/c/go/+/343732
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/base/flag.go
test/run.go
test/typeparam/smoketest.go