math: adjust compilation flags, use them when testing
commitff60d2b1cee0895ce85d48595665e4e9201fe026
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Feb 2018 21:05:20 +0000 (1 21:05 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Feb 2018 21:05:20 +0000 (1 21:05 +0000)
tree22f2408010d680c87c037ebf561a741ac3f31c12
parentd835b8fe99c5db9fad34bc01a6dcb3fb98e5adc8
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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257312 138bc75d-0d04-0410-961f-82ee72b054a4
libgo/Makefile.am
libgo/Makefile.in
libgo/configure
libgo/configure.ac
libgo/go/math/all_test.go