mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
3b3d6b9e5d
commit
1c1c1942ba
1 changed files with 0 additions and 1 deletions
|
|
@ -100,7 +100,6 @@ var validCompilerFlags = []*lazyregexp.Regexp{
|
||||||
re(`-m(abi|arch|cpu|fpu|simd|tls-dialect|tune)=([^@\-].*)`),
|
re(`-m(abi|arch|cpu|fpu|simd|tls-dialect|tune)=([^@\-].*)`),
|
||||||
re(`-m(no-)?v?aes`),
|
re(`-m(no-)?v?aes`),
|
||||||
re(`-marm`),
|
re(`-marm`),
|
||||||
re(`-m(no-)?avx[0-9a-z]*`),
|
|
||||||
re(`-mcmodel=[0-9a-z-]+`),
|
re(`-mcmodel=[0-9a-z-]+`),
|
||||||
re(`-mfloat-abi=([^@\-].*)`),
|
re(`-mfloat-abi=([^@\-].*)`),
|
||||||
re(`-m(soft|single|double)-float`),
|
re(`-m(soft|single|double)-float`),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue