Uros Bizjak <ubiz...@gmail.com> writes:

>> This patch to the Go testsuite driver recognizes a few more test lines
>> in Go tests.  I somehow failed to notice these the last time I updated
>> the Go testsuite.  This patch includes a couple of changes to make the
>> newly recognized tests pass.  Ran Go testsuite on
>> x86_64-unknown-linux-gnu.  Committed to mainline.
>
> Some of the go tests require explicit -mieee compile flag [1]. Is
> there a way to conditionally pass this flag to the compiler?

What does Java do?

For Go, like Java, we should turn on the -mieee option by default.  Both
Go and Java specify the floating point model precisely--Go not as
precisely as Java, but it does require denormals to be supported.
Unfortunately I'm not sure how to do that.  My best idea at the moment
is to add a new target hook to common/common-target.def meaning "we
actually care about floating point."

That said, it would be easy enough to handle -mieee to way we handle
-minline-all-stringops in libgo/configure.ac and libgo/Makefile.am.
That would let us use -mieee when building and testing libgo.  But it
should really be the default in all cases, not just libgo.

Ian

Reply via email to