1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:54:40 -07:00

Revert "cmd/internal: disable OSQRT on GOARM=5"

I just submitted the real fix for #10641.

This reverts commit 3120adc212.

Change-Id: I55051515f697e27ca887ed21c2ac985f0b9b062b
Reviewed-on: https://go-review.googlesource.com/9720
Reviewed-by: Joel Sing <jsing@google.com>
This commit is contained in:
Minux Ma 2015-05-05 07:35:08 +00:00
parent a63ba85a9f
commit 8fb55f9d41

View File

@ -627,11 +627,6 @@ func walkexpr(np **Node, init **NodeList) {
if n.Left.Op == ONAME && n.Left.Sym.Name == "Sqrt" && n.Left.Sym.Pkg.Path == "math" {
switch Thearch.Thechar {
case '5', '6', '7':
// TODO(jsing): This currently breaks math.Sqrt
// on GOARM=5 (see issue 10641).
if Thearch.Thechar == '5' && obj.Getgoarm() == "5" {
break
}
n.Op = OSQRT
n.Left = n.List.N
n.List = nil