diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-10-05 14:21:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-10-05 14:21:01 +0000 |
commit | cbba2e1e47b550cebfb63fec85519cb14f2517d4 (patch) | |
tree | 5a7d887ac6cdca595cddb774af839339780c6052 /libgo | |
parent | a2a86641b76dfd5606606d5a49fa64c20f0d9245 (diff) | |
download | gcc-cbba2e1e47b550cebfb63fec85519cb14f2517d4.zip gcc-cbba2e1e47b550cebfb63fec85519cb14f2517d4.tar.gz gcc-cbba2e1e47b550cebfb63fec85519cb14f2517d4.tar.bz2 |
runtime: remove checkgoarm function
Nothing in libgo calls checkgoarm, and it relies on a variable, goarm,
that is not set.
Reviewed-on: https://go-review.googlesource.com/c/140057
From-SVN: r264872
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/runtime/os_linux_arm.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libgo/go/runtime/os_linux_arm.go b/libgo/go/runtime/os_linux_arm.go index 42c2839..4b86455 100644 --- a/libgo/go/runtime/os_linux_arm.go +++ b/libgo/go/runtime/os_linux_arm.go @@ -19,25 +19,6 @@ var armArch uint8 = 6 // we default to ARMv6 var hwcap uint32 // set by archauxv var hardDiv bool // set if a hardware divider is available -func checkgoarm() { - // On Android, /proc/self/auxv might be unreadable and hwcap won't - // reflect the CPU capabilities. Assume that every Android arm device - // has the necessary floating point hardware available. - if GOOS == "android" { - return - } - if goarm > 5 && hwcap&_HWCAP_VFP == 0 { - print("runtime: this CPU has no floating point hardware, so it cannot run\n") - print("this GOARM=", goarm, " binary. Recompile using GOARM=5.\n") - exit(1) - } - if goarm > 6 && hwcap&_HWCAP_VFPv3 == 0 { - print("runtime: this CPU has no VFPv3 floating point hardware, so it cannot run\n") - print("this GOARM=", goarm, " binary. Recompile using GOARM=5 or GOARM=6.\n") - exit(1) - } -} - func archauxv(tag, val uintptr) { switch tag { case _AT_RANDOM: |