]> Cypherpunks.ru repositories - gostls13.git/commitdiff
cmd/compile: reenable inline static init
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 9 Feb 2023 19:20:56 +0000 (02:20 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 14 Apr 2023 17:57:36 +0000 (17:57 +0000)
Updates #58293
Updates #58339
Fixes #58439

Change-Id: I06d2d92f86fa4a672d69515c4066d69d3e0fc75b
Reviewed-on: https://go-review.googlesource.com/c/go/+/467016
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>

src/cmd/compile/internal/base/flag.go
test/fixedbugs/issue56778.go
test/fixedbugs/issue58439.go
test/inline.go
test/noinit.go

index 785cc4279a970f45c4605e6ed232e796390e0d97..f7f260d8d08221758b1559025b45d6a4519ab993 100644 (file)
@@ -167,7 +167,7 @@ func ParseFlags() {
 
        Debug.ConcurrentOk = true
        Debug.InlFuncsWithClosures = 1
-       Debug.InlStaticInit = 0
+       Debug.InlStaticInit = 1
        Debug.SyncFrames = -1 // disable sync markers by default
 
        Debug.Checkptr = -1 // so we can tell whether it is set explicitly
index 3c27501fd27d870ae047fc6524d3448b7a0f08e1..8bb5c3e21398f4d28cfb34ab6acd869926063c1c 100644 (file)
@@ -1,4 +1,4 @@
-// compiledir -d=inlstaticinit=1
+// compiledir
 
 // Copyright 2022 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index daf188f039fa8385a3ec4799289804a01019929a..ad3650f6be9ecc69cd847b2616660567bcf4e405 100644 (file)
@@ -1,4 +1,4 @@
-// compile -d=inlstaticinit
+// compile
 
 // Copyright 2023 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 3bc102f769c2a63e8cdd911dd94f6af4cb0feb9d..45a6255efc62809fb1432851b0e6ae86f1ba6dde 100644 (file)
@@ -1,4 +1,4 @@
-// errorcheckwithauto -0 -m -d=inlfuncswithclosures=1 -d=inlstaticinit=1
+// errorcheckwithauto -0 -m -d=inlfuncswithclosures=1
 
 // Copyright 2015 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 1496b27248ef18156a184466cc6707e88c8d3c88..84aeeafb59b629e1c79eeb20f56b324c5c44b2f7 100644 (file)
@@ -1,4 +1,4 @@
-// run -gcflags=-d=inlstaticinit=1
+// run
 //go:build !gcflags_noopt
 
 // Copyright 2010 The Go Authors. All rights reserved.