summaryrefslogtreecommitdiff
path: root/libgo/Makefile.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2018-02-01 21:05:20 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-02-01 21:05:20 +0000
commit28f3c8143b2f7e6178e5baaf81d15c65cbe6f06b (patch)
tree22f2408010d680c87c037ebf561a741ac3f31c12 /libgo/Makefile.in
parentd15f0fa7f9b7bc2eabb29429a7ca8556a3272625 (diff)
downloadgcc-28f3c8143b2f7e6178e5baaf81d15c65cbe6f06b.tar.gz
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
Diffstat (limited to 'libgo/Makefile.in')
-rw-r--r--libgo/Makefile.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgo/Makefile.in b/libgo/Makefile.in
index 471a047f831..fbca83ec3af 100644
--- a/libgo/Makefile.in
+++ b/libgo/Makefile.in
@@ -1175,6 +1175,7 @@ CHECK_DEPS = $(toolexeclibgo_DATA) $(toolexeclibgoarchive_DATA) \
# Pass -ffp-contract=off, or 386-specific options, when building the
# math package. MATH_FLAG is defined in configure.ac.
math_lo_GOCFLAGS = $(MATH_FLAG)
+math_check_GOCFLAGS = $(MATH_FLAG)
# Add the generated file runtime_sysinfo.go to the runtime package.
extra_go_files_runtime = runtime_sysinfo.go sigtab.go