From: Sujoy Saraswati Date: Fri, 8 Jan 2016 08:35:02 +0000 (+0000) Subject: Restrict to linux and gnu targets as not all math.h implementations support the issig... X-Git-Tag: basepoints/gcc-7~1777 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6e1f093f7466ee77557e5ffad9b3ab9ae945e4e3;p=thirdparty%2Fgcc.git Restrict to linux and gnu targets as not all math.h implementations support the issignaling macro. Restrict to linux and gnu targets as not all math.h implementations support the issignaling macro. Use -fexcess-precision=standard for compiler options. Use fabs() only when __FLT_EVAL_METHOD__ == 0. gcc/testsuite/ * gcc.dg/pr61441.c: Restrict to linux and gnu targets. Use -fexcess-precision=standard for compiler options. Use fabs() only when __FLT_EVAL_METHOD__ == 0. From-SVN: r232152 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b7f25ebc66a9..589576e7f883 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2016-01-08 Sujoy Saraswati + + PR tree-optimization/61441 + * gcc.dg/pr61441.c: Restrict to linux and gnu targets. + Use -fexcess-precision=standard for compiler options. + Use fabs() only when __FLT_EVAL_METHOD__ == 0. + 2016-01-08 Jakub Jelinek PR fortran/69128 diff --git a/gcc/testsuite/gcc.dg/pr61441.c b/gcc/testsuite/gcc.dg/pr61441.c index 608a763b31fc..5d642e86ce57 100644 --- a/gcc/testsuite/gcc.dg/pr61441.c +++ b/gcc/testsuite/gcc.dg/pr61441.c @@ -1,5 +1,5 @@ -/* { dg-do run } */ -/* { dg-options "-O1 -lm" } */ +/* { dg-do run { target { *-*-linux* *-*-gnu* } } } */ +/* { dg-options "-O1 -lm -fexcess-precision=standard" } */ #define _GNU_SOURCE #include @@ -56,6 +56,8 @@ int main (void) operation(Add); operation(Mult); operation(Div); +#if __FLT_EVAL_METHOD__ == 0 operation(Abs); +#endif return 0; }