From: Alberto Donizetti Date: Fri, 22 Aug 2025 09:49:53 +0000 (+0200) Subject: all: delete remaining windows/arm code X-Git-Tag: go1.26rc1~1038 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=98238fd495;p=gostls13.git all: delete remaining windows/arm code Fixes #43800 Updates #71671 Change-Id: Ib7aafe3a3f6ae48f23fa23f03103820e9fcf5161 Reviewed-on: https://go-review.googlesource.com/c/go/+/698415 Reviewed-by: Quim Muntal Reviewed-by: Cherry Mui LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov Reviewed-by: Filippo Valsorda --- diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index aa09d1eba3..5f3a66ed04 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -1773,7 +1773,7 @@ func buildModeSupported(compiler, buildmode, goos, goarch string) bool { "ios/amd64", "ios/arm64", "aix/ppc64", "openbsd/arm64", - "windows/386", "windows/amd64", "windows/arm", "windows/arm64": + "windows/386", "windows/amd64", "windows/arm64": return true } return false diff --git a/src/cmd/internal/obj/fips140.go b/src/cmd/internal/obj/fips140.go index ea36849a21..da18b64178 100644 --- a/src/cmd/internal/obj/fips140.go +++ b/src/cmd/internal/obj/fips140.go @@ -196,14 +196,8 @@ func EnableFIPS() bool { // Perhaps the default should be changed back to -buildmode=exe, // after which we could remove this case, but until then, // skip FIPS on windows-386. - // - // We don't know whether arm works, because it is too hard to get builder - // time to test it. Disable since it's not important right now. - if buildcfg.GOOS == "windows" { - switch buildcfg.GOARCH { - case "386", "arm": - return false - } + if buildcfg.GOOS == "windows" && buildcfg.GOARCH == "386" { + return false } // AIX doesn't just work, and it's not worth fixing. diff --git a/src/crypto/internal/fips140/fips140.go b/src/crypto/internal/fips140/fips140.go index 050967f480..fd265718e0 100644 --- a/src/crypto/internal/fips140/fips140.go +++ b/src/crypto/internal/fips140/fips140.go @@ -46,7 +46,6 @@ func Supported() error { switch { case runtime.GOARCH == "wasm", runtime.GOOS == "windows" && runtime.GOARCH == "386", - runtime.GOOS == "windows" && runtime.GOARCH == "arm", runtime.GOOS == "openbsd", // due to -fexecute-only, see #70880 runtime.GOOS == "aix": return errors.New("FIPS 140-3 mode is not supported on " + runtime.GOOS + "-" + runtime.GOARCH) diff --git a/src/runtime/signal_windows_test.go b/src/runtime/signal_windows_test.go index 9318ff9c00..7a9afcce22 100644 --- a/src/runtime/signal_windows_test.go +++ b/src/runtime/signal_windows_test.go @@ -79,12 +79,7 @@ func TestVectoredHandlerDontCrashOnLibrary(t *testing.T) { if *flagQuick { t.Skip("-quick") } - if runtime.GOARCH == "arm" { - //TODO: remove this skip and update testwinlib/main.c - // once windows/arm supports c-shared buildmode. - // See go.dev/issues/43800. - t.Skip("this test can't run on windows/arm") - } + testenv.MustHaveGoBuild(t) testenv.MustHaveCGO(t) testenv.MustHaveExecPath(t, "gcc") @@ -115,8 +110,8 @@ func TestVectoredHandlerDontCrashOnLibrary(t *testing.T) { t.Fatalf("failure while running executable: %s\n%s", err, out) } var expectedOutput string - if runtime.GOARCH == "arm64" || runtime.GOARCH == "arm" { - // TODO: remove when windows/arm64 and windows/arm support SEH stack unwinding. + if runtime.GOARCH == "arm64" { + // TODO: remove when windows/arm64 support SEH stack unwinding. expectedOutput = "exceptionCount: 1\ncontinueCount: 1\nunhandledCount: 0\n" } else { expectedOutput = "exceptionCount: 1\ncontinueCount: 1\nunhandledCount: 1\n"