cmd/toolstash: drop 387, use softfloat instead

golang.org/cl/258957 dropped 387 support, and golang.org/cl/260017
implements GO386=softfloat, so use it instead.

While at it, also cleanup things related to nacl.

Change-Id: I7bd58c5653dd61635b373f1b219f52bfc53e55e4
Reviewed-on: https://go-review.googlesource.com/c/tools/+/274752
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
diff --git a/cmd/toolstash/buildall b/cmd/toolstash/buildall
index 40d88f5..0c6492c 100755
--- a/cmd/toolstash/buildall
+++ b/cmd/toolstash/buildall
@@ -37,11 +37,11 @@
 	pattern=.
 fi
 
-targets="$(go tool dist list; echo linux/386/387)"
+targets="$(go tool dist list; echo linux/386/softfloat)"
 targets="$(echo "$targets" | tr '/' '-' | sort | egrep "$pattern" | egrep -v 'android-arm|darwin-arm')"
 
-# put linux, nacl first in the target list to get all the architectures up front.
-targets="$(echo "$targets" | egrep 'linux|nacl') $(echo "$targets" | egrep -v 'linux|nacl')"
+# put linux first in the target list to get all the architectures up front.
+targets="$(echo "$targets" | egrep 'linux') $(echo "$targets" | egrep -v 'linux')"
 
 if [ "$sete" = true ]; then
 	set -e
@@ -52,9 +52,9 @@
 	export GOOS=$(echo $target | sed 's/-.*//')
 	export GOARCH=$(echo $target | sed 's/.*-//')
 	unset GO386
-	if [ "$GOARCH" = "387" ]; then
+	if [ "$GOARCH" = "softfloat" ]; then
 		export GOARCH=386
-		export GO386=387
+		export GO386=softfloat
 	fi
 	if $cmp; then
 		if [ "$GOOS" = "android" ]; then