Skip to content

Commit d3cd483

Browse files
committed
[dev.regabi] test: run abi/regabipragma test with -c=1
Currently, we call Warnl in SSA backend when we see a function (defined or called) with regparams pragma. Calling Warnl in concurrent environment is racy. As the debugging output is temporary, for testing purposes we just pass -c=1. We'll remove the pragma and the debugging print some time soon. Change-Id: I6f925a665b953259453fc458490c5ff91f67c91a Reviewed-on: https://go-review.googlesource.com/c/go/+/291710 TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jeremy Faller <jeremy@golang.org> Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com>
1 parent 03cea56 commit d3cd483

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/abi/regabipragma.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// runindir
1+
// runindir -gcflags=-c=1
22
// +build !windows
33

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

test/run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,7 @@ func (t *test) run() {
902902
if *linkshared {
903903
cmd = append(cmd, "-linkshared")
904904
}
905+
cmd = append(cmd, flags...)
905906
cmd = append(cmd, ".")
906907
out, err := runcmd(cmd...)
907908
if err != nil {

0 commit comments

Comments
 (0)