summaryrefslogtreecommitdiff
path: root/src/cmd/dist/arm.c
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@debian.org>2014-06-19 09:22:53 +0200
committerMichael Stapelberg <stapelberg@debian.org>2014-06-19 09:22:53 +0200
commit8a39ee361feb9bf46d728ff1ba4f07ca1d9610b1 (patch)
tree4449f2036cccf162e8417cc5841a35815b3e7ac5 /src/cmd/dist/arm.c
parentc8bf49ef8a92e2337b69c14b9b88396efe498600 (diff)
downloadgolang-upstream/1.3.tar.gz
Imported Upstream version 1.3upstream/1.3
Diffstat (limited to 'src/cmd/dist/arm.c')
-rw-r--r--src/cmd/dist/arm.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/cmd/dist/arm.c b/src/cmd/dist/arm.c
index dafc5c1c2..52a621c5d 100644
--- a/src/cmd/dist/arm.c
+++ b/src/cmd/dist/arm.c
@@ -17,16 +17,8 @@ static void useVFPv1(void);
char *
xgetgoarm(void)
{
-#if defined(__NetBSD__) || defined(__FreeBSD__)
- // NetBSD has buggy support for VFPv2 (incorrect inexact,
- // denormial, and NaN handling). When GOARM=6, some of our
- // math tests fails on Raspberry Pi.
- // Thus we return "5" here for safety, the user is free
- // to override.
- // Note: using GOARM=6 with cgo can trigger a kernel assertion
- // failure and crash NetBSD/evbarm kernel.
- // FreeBSD also have broken VFP support, so disable VFP also
- // on FreeBSD.
+#if defined(__FreeBSD__)
+ // FreeBSD has broken VFP support
return "5";
#endif
if(xtryexecfunc(useVFPv3))