summaryrefslogtreecommitdiff
path: root/src/cmd/dist
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2014-03-06 00:57:23 -0500
committerShenghou Ma <minux.ma@gmail.com>2014-03-06 00:57:23 -0500
commitede13192335643aabd59ebdc0b9864e2077daea7 (patch)
tree4592b2d9e71648468343c81f44aadebfaa1a7a8b /src/cmd/dist
parentaede4ad8205ab1ad6867342194bcaa3f7ce767c2 (diff)
downloadgo-ede13192335643aabd59ebdc0b9864e2077daea7.tar.gz
cmd/dist: enable GOARM>5 on NetBSD/ARM.
Tested GOARM=6 on Raspberry Pi, and I found only a few tests that use sub-normal numbers fails. I have a patch to NetBSD kernel pending that fixes this issue (NetBSD kernel doesn't allow us to disable the Flush-to-Zero feature). LGTM=jsing R=golang-codereviews, jsing CC=golang-codereviews https://codereview.appspot.com/70730043
Diffstat (limited to 'src/cmd/dist')
-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))