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>
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