From 97ca703d548df069cb02aacea9efc3093ffdc3c4 Mon Sep 17 00:00:00 2001 From: zhouguangyuan Date: Fri, 3 Dec 2021 15:13:24 +0800 Subject: [PATCH] cpu: remove the declaration of function darwinSupportsAVX512 The implement of darwinSupportsAVX512 has been removed in CL 361255. But the command "go install -buildmode=shared std" failed because the declaration of it is remained in cpu/cpu_gc_x86.go. It should be removed. Update golang/go#49233 For golang/go#49942 Change-Id: I8fa7c61c20457e49414930029b9f026c335aa421 Reviewed-on: https://go-review.googlesource.com/c/sys/+/368994 Reviewed-by: Tobias Klauser Reviewed-by: Keith Randall Run-TryBot: Tobias Klauser TryBot-Result: Gopher Robot Trust: Ian Lance Taylor --- cpu/cpu_gc_x86.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cpu/cpu_gc_x86.go b/cpu/cpu_gc_x86.go index 3298a87e..fa7cdb9b 100644 --- a/cpu/cpu_gc_x86.go +++ b/cpu/cpu_gc_x86.go @@ -15,7 +15,3 @@ func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) // xgetbv with ecx = 0 is implemented in cpu_x86.s for gc compiler // and in cpu_gccgo.c for gccgo. func xgetbv() (eax, edx uint32) - -// darwinSupportsAVX512 is implemented in cpu_x86.s for gc compiler -// and in cpu_gccgo_x86.go for gccgo. -func darwinSupportsAVX512() bool