summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorssaraswati <ssaraswati@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-08 08:35:02 +0000
committerssaraswati <ssaraswati@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-08 08:35:02 +0000
commit9e0e8c2aacd3c69d72b3e03c6629fdfbddf29765 (patch)
tree7ecbce6243dcf27ea2f8ff983df613bd8705c4e7
parent5013f740f4150ed1123745e27cb53a6dd93446f4 (diff)
downloadgcc-9e0e8c2aacd3c69d72b3e03c6629fdfbddf29765.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232152 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.dg/pr61441.c6
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b7f25ebc66a..589576e7f88 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2016-01-08 Sujoy Saraswati <sujoy.saraswati@hpe.com>
+
+ 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 <jakub@redhat.com>
PR fortran/69128
diff --git a/gcc/testsuite/gcc.dg/pr61441.c b/gcc/testsuite/gcc.dg/pr61441.c
index 608a763b31f..5d642e86ce5 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 <stdio.h>
@@ -56,6 +56,8 @@ int main (void)
operation(Add);
operation(Mult);
operation(Div);
+#if __FLT_EVAL_METHOD__ == 0
operation(Abs);
+#endif
return 0;
}