]> Cypherpunks repositories - gostls13.git/commitdiff
Revert "cmd/internal: disable OSQRT on GOARM=5"
authorMinux Ma <minux@golang.org>
Tue, 5 May 2015 07:35:08 +0000 (07:35 +0000)
committerMinux Ma <minux@golang.org>
Tue, 5 May 2015 19:54:54 +0000 (19:54 +0000)
I just submitted the real fix for #10641.

This reverts commit 3120adc21294829c230005a89e9bb0ad63de606b.

Change-Id: I55051515f697e27ca887ed21c2ac985f0b9b062b
Reviewed-on: https://go-review.googlesource.com/9720
Reviewed-by: Joel Sing <jsing@google.com>
src/cmd/internal/gc/walk.go

index 82cedd687cf3b6be003f35a2ee2aed19795b063e..c32a8137d614706740f13e2590495e21d288ed8a 100644 (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