This should fix the FAILs seen on trunk for some targets.
Tested powerpc64-linux, comitted to trunk.
commit 6f952bce33752add3fd08efac03bc19782ef09b8 Author: Jonathan Wakely <jwak...@redhat.com> Date: Wed Jan 27 13:55:45 2016 +0000 Set FP options for failing special functions tests PR libstdc++/69295 * testsuite/ext/special_functions/hyperg/check_value.cc: Use -ffp-contract=off, and -ffloat-store to disable excess precision. * testsuite/special_functions/02_assoc_legendre/check_value.cc: Use -ffp-contract=off. diff --git a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc index 218c07a..d87fcef 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc @@ -1,5 +1,6 @@ -// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } -// +// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__ -ffp-contract=off" } +// { dg-additional-options "-ffloat-store" { target { m68*-*-* || ia32 } } } + // Copyright (C) 2016 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free diff --git a/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_value.cc b/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_value.cc index a514207..0c60ac6 100644 --- a/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_value.cc @@ -1,5 +1,5 @@ -// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } -// +// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__ -ffp-contract=off" } + // Copyright (C) 2016 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free