From 18fccdb440fff68ec10ec448261efaa3cd1d01d7 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 22 Dec 2015 09:52:13 +0000 Subject: [PATCH] * gcc.dg/torture/pr68264.c: Tweak for Solaris. From-SVN: r231898 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/torture/pr68264.c | 16 +++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 14f048d1df9..04d48b88617 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-12-22 Eric Botcazou + + * gcc.dg/torture/pr68264.c: Tweak for Solaris. + 2015-12-21 David Malcolm * g++.dg/diagnostic/bad-binary-ops.C: New test case. diff --git a/gcc/testsuite/gcc.dg/torture/pr68264.c b/gcc/testsuite/gcc.dg/torture/pr68264.c index a13dbf4b3de..4a8863b6c17 100644 --- a/gcc/testsuite/gcc.dg/torture/pr68264.c +++ b/gcc/testsuite/gcc.dg/torture/pr68264.c @@ -68,14 +68,24 @@ test (void) TEST (cosh (d), LARGE_ERANGE); TEST (sinh (d), LARGE_ERANGE); TEST (log (d), LARGE_NEG_EDOM); - TEST (log2 (d), LARGE_NEG_EDOM); +#if defined (__sun__) && defined (__unix__) + /* Disabled due to a bug in Solaris libm. */ + if (0) +#endif + TEST (log2 (d), LARGE_NEG_EDOM); TEST (log10 (d), LARGE_NEG_EDOM); /* Disabled due to glibc PR 6792, fixed in Apr 2015. */ if (0) TEST (log1p (d), LARGE_NEG_EDOM); TEST (exp (d), POWER_ERANGE); - TEST (exp2 (d), POWER_ERANGE); - TEST (expm1 (d), POWER_ERANGE); +#if defined (__sun__) && defined (__unix__) + /* Disabled due to a bug in Solaris libm. */ + if (0) +#endif + { + TEST (exp2 (d), POWER_ERANGE); + TEST (expm1 (d), POWER_ERANGE); + } TEST (sqrt (d), LARGE_NEG_EDOM); TEST (pow (100.0, d), POWER_ERANGE); TEST (pow (i, d), POWER_ERANGE); -- 2.30.2