Commit 8fb55f9d authored by Minux Ma's avatar Minux Ma

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

I just submitted the real fix for #10641.

This reverts commit 3120adc2.

Change-Id: I55051515f697e27ca887ed21c2ac985f0b9b062b
Reviewed-on: https://go-review.googlesource.com/9720Reviewed-by: default avatarJoel Sing <jsing@google.com>
parent a63ba85a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment