From: Segher Boessenkool Date: Fri, 17 Feb 2017 14:51:40 +0000 (+0100) Subject: testsuite: pr59833.c and pr61441.c should use -fsignaling-nans X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3185712c775f226df6f06304a1d7e0e87a1b99c3;p=gcc.git testsuite: pr59833.c and pr61441.c should use -fsignaling-nans The testcases pr59833.c and pr61441.c check whether signaling NaNs as input to some operation result in quiet NaNs. Without -fsignaling-nans this is not guaranteed to happen. So, this patch add this option to these testcases. * gcc.dg/pr59833.c: Add -fsignaling-nans to options. * gcc.dg/pr61441.c: Ditto. From-SVN: r245533 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d0a95d48af4..0f62d8d6c8a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-02-17 Segher Boessenkool + + * gcc.dg/pr59833.c: Add -fsignaling-nans to options. + * gcc.dg/pr61441.c: Ditto. + 2017-02-17 Martin Liska PR rtl-optimization/79574 diff --git a/gcc/testsuite/gcc.dg/pr59833.c b/gcc/testsuite/gcc.dg/pr59833.c index 45fcf7fd289..c75efdef310 100644 --- a/gcc/testsuite/gcc.dg/pr59833.c +++ b/gcc/testsuite/gcc.dg/pr59833.c @@ -1,5 +1,5 @@ /* { dg-do run { target { *-*-linux* *-*-gnu* } } } */ -/* { dg-options "-O0 -lm" } */ +/* { dg-options "-O0 -lm -fsignaling-nans" } */ /* { dg-add-options ieee } */ /* { dg-require-effective-target issignaling } */ diff --git a/gcc/testsuite/gcc.dg/pr61441.c b/gcc/testsuite/gcc.dg/pr61441.c index 1b0f1810d8a..9408e8507e5 100644 --- a/gcc/testsuite/gcc.dg/pr61441.c +++ b/gcc/testsuite/gcc.dg/pr61441.c @@ -1,5 +1,5 @@ /* { dg-do run { target { *-*-linux* *-*-gnu* } } } */ -/* { dg-options "-O1 -lm -fexcess-precision=standard" } */ +/* { dg-options "-O1 -lm -fexcess-precision=standard -fsignaling-nans" } */ /* { dg-require-effective-target issignaling } */ #define _GNU_SOURCE