Skip to content

Commit 20c349e

Browse files
committed
cmd/compile: reenable inline static init
Updates #58293 Updates #58339 Fixes #58439 Change-Id: I06d2d92f86fa4a672d69515c4066d69d3e0fc75b Reviewed-on: https://go-review.googlesource.com/c/go/+/467016 TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Keith Randall <[email protected]> Reviewed-by: David Chase <[email protected]> Reviewed-by: Keith Randall <[email protected]> Run-TryBot: Cuong Manh Le <[email protected]>
1 parent a141c58 commit 20c349e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/cmd/compile/internal/base/flag.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func ParseFlags() {
167167

168168
Debug.ConcurrentOk = true
169169
Debug.InlFuncsWithClosures = 1
170-
Debug.InlStaticInit = 0
170+
Debug.InlStaticInit = 1
171171
Debug.SyncFrames = -1 // disable sync markers by default
172172

173173
Debug.Checkptr = -1 // so we can tell whether it is set explicitly

test/fixedbugs/issue56778.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compiledir -d=inlstaticinit=1
1+
// compiledir
22

33
// Copyright 2022 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/fixedbugs/issue58439.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile -d=inlstaticinit
1+
// compile
22

33
// Copyright 2023 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/inline.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// errorcheckwithauto -0 -m -d=inlfuncswithclosures=1 -d=inlstaticinit=1
1+
// errorcheckwithauto -0 -m -d=inlfuncswithclosures=1
22

33
// Copyright 2015 The Go Authors. All rights reserved.
44
// Use of this source code is governed by a BSD-style

test/noinit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// run -gcflags=-d=inlstaticinit=1
1+
// run
22
//go:build !gcflags_noopt
33

44
// Copyright 2010 The Go Authors. All rights reserved.

0 commit comments

Comments
 (0)