diff options
| author | David Chase <drchase@google.com> | 2025-10-14 16:18:49 -0400 |
|---|---|---|
| committer | David Chase <drchase@google.com> | 2025-10-14 15:09:35 -0700 |
| commit | 7056c71d320bea2e1cafbb4f8863513ed50a4256 (patch) | |
| tree | 00a37c5e2134d6e12696472be90d9bfda325a128 /src/cmd/compile | |
| parent | 6d5b13793f51c77e7ea730ca140d5c1cb583af92 (diff) | |
| download | go-7056c71d320bea2e1cafbb4f8863513ed50a4256.tar.xz | |
cmd/compile: disable use of new saturating float-to-int conversions
The new conversions can be activated (or bisected) with
-gcflags=all=-d=converthash=PATTERN
where PATTERN is either a hash string or n, qn, y, qy for
no, quietly no, yes, quietly yes.
This CL makes the default pattern be "qn" instead of the
default-default which is an efficient encoding of "qy".
Updates #75834
Change-Id: I88a9fd7880bc999132420c8d0a22a8fdc1e95a2a
Reviewed-on: https://go-review.googlesource.com/c/go/+/711845
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Bypass: David Chase <drchase@google.com>
Diffstat (limited to 'src/cmd/compile')
| -rw-r--r-- | src/cmd/compile/internal/base/flag.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/base/flag.go b/src/cmd/compile/internal/base/flag.go index 1ac2cecc61..1d211e0a2d 100644 --- a/src/cmd/compile/internal/base/flag.go +++ b/src/cmd/compile/internal/base/flag.go @@ -264,6 +264,9 @@ func ParseFlags() { if Debug.Converthash != "" { ConvertHash = NewHashDebug("converthash", Debug.Converthash, nil) + } else { + // quietly disable the convert hash changes + ConvertHash = NewHashDebug("converthash", "qn", nil) } if Debug.Fmahash != "" { FmaHash = NewHashDebug("fmahash", Debug.Fmahash, nil) |
