math: adjust compilation flags, use them when testing
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 1 Feb 2018 21:05:20 +0000 (21:05 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 1 Feb 2018 21:05:20 +0000 (21:05 +0000)
commit28f3c8143b2f7e6178e5baaf81d15c65cbe6f06b
tree22f2408010d680c87c037ebf561a741ac3f31c12
parentd15f0fa7f9b7bc2eabb29429a7ca8556a3272625
math: adjust compilation flags, use them when testing

    We were using special compilation flags for the math package, but we
    weren't using them when testing.  That meant that our tests were not
    checking the real code we were providing.  Fix that.

    Fixing that revealed that we were not using a good set of flags, or at
    least were not using flags that let the tests pass.  Adjust the flags
    to stop using -funsafe-math-optimizations on x86.  Instead always use
    -ffp-contract=off -fno-math-errno -fno-trapping-math for all targets.

    Fixes golang/go#23647

    Reviewed-on: https://go-review.googlesource.com/91355

From-SVN: r257312
libgo/Makefile.am
libgo/Makefile.in
libgo/configure
libgo/configure.ac
libgo/go/math/all_test.go