Skip to content

Commit 1c1c194

Browse files
mohansongopherbot
authored andcommitted
cmd/go: remove redundant AVX regex in security flag checks
Remove "-m(no-)?avx[0-9a-z]*" from validCompilerFlags in security.go, because "-m(no-)?avx[0-9a-z.]*" (see line 108) already covers its matching range. Change-Id: Ic86a45eefa7639ed3a8cdee95f08021d9515678e Reviewed-on: https://go-review.googlesource.com/c/go/+/717740 Reviewed-by: Junyang Shao <shaojunyang@google.com> Auto-Submit: Michael Pratt <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com>
1 parent 3b3d6b9 commit 1c1c194

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/cmd/go/internal/work/security.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ var validCompilerFlags = []*lazyregexp.Regexp{
100100
re(`-m(abi|arch|cpu|fpu|simd|tls-dialect|tune)=([^@\-].*)`),
101101
re(`-m(no-)?v?aes`),
102102
re(`-marm`),
103-
re(`-m(no-)?avx[0-9a-z]*`),
104103
re(`-mcmodel=[0-9a-z-]+`),
105104
re(`-mfloat-abi=([^@\-].*)`),
106105
re(`-m(soft|single|double)-float`),

0 commit comments

Comments
 (0)