]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: adjust GOARM floating point compatibility error message
authorTobias Klauser <tklauser@distanz.ch>
Wed, 21 Mar 2018 18:42:24 +0000 (19:42 +0100)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sat, 24 Mar 2018 04:47:27 +0000 (04:47 +0000)
As pointed out by Josh Bleecher Snyder in CL 99780.

The check is for GOARM > 6, so suggest to recompile with either GOARM=5
or GOARM=6.

Change-Id: I6a97e87bdc17aa3932f5c8cb598bba85c3cf4be9
Reviewed-on: https://go-review.googlesource.com/101936
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/runtime/os_freebsd_arm.go
src/runtime/os_linux_arm.go

index f0d04244f37e8fd77d5e25050e892fd6d8f9288e..d2dc26f0c4f40c37b2458869ba5009db1c83a936 100644 (file)
@@ -21,7 +21,7 @@ func checkgoarm() {
        }
        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.\n")
+               print("this GOARM=", goarm, " binary. Recompile using GOARM=5 or GOARM=6.\n")
                exit(1)
        }
 
index a0e2c081b908375d2bb9ce4daf06aee61c0a3937..14f1cfeaefb5d57c1510f17ff56b2994aebcf61e 100644 (file)
@@ -33,7 +33,7 @@ func checkgoarm() {
        }
        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.\n")
+               print("this GOARM=", goarm, " binary. Recompile using GOARM=5 or GOARM=6.\n")
                exit(1)
        }
 }