The new gcc.dg/torture/float128* tests FAIL on Solaris 9/x86 which lacks
<fenv.h>.  Fixed by the patch below, tested with the appropriate runtest
invocations on i386-pc-solaris2.9 and i386-pc-solaris2.11.

Ok for mainline?

Btw., the new fenv_exceptions effective-target keywords needs
documenting in sourcebuild.texi.

Thanks.
        Rainer


2013-11-14  Rainer Orth  <r...@cebitec.uni-bielefeld.de>

        * gcc.dg/torture/float128-cmp-invalid.c: Require fenv_exceptions.
        * gcc.dg/torture/float128-div-underflow.c: Likewise.
        * gcc.dg/torture/float128-extend-nan.c: Likewise.
        * gcc.dg/torture/fp-int-convert-float128-timode-3.c: Likewise.

# HG changeset patch
# Parent 82a2c2ec47398cc2ae1798c8952b6f56e7e8f3dc
Require fenv_exceptions in gcc.dg/torture/float128* tests

diff --git a/gcc/testsuite/gcc.dg/torture/float128-cmp-invalid.c b/gcc/testsuite/gcc.dg/torture/float128-cmp-invalid.c
--- a/gcc/testsuite/gcc.dg/torture/float128-cmp-invalid.c
+++ b/gcc/testsuite/gcc.dg/torture/float128-cmp-invalid.c
@@ -1,6 +1,7 @@
 /* Test for "invalid" exceptions from __float128 comparisons.  */
 /* { dg-do run { target i?86-*-* x86_64-*-* ia64-*-* } } */
 /* { dg-options "" } */
+/* { dg-require-effective-target fenv_exceptions } */
 
 #include <fenv.h>
 #include <stdlib.h>
diff --git a/gcc/testsuite/gcc.dg/torture/float128-div-underflow.c b/gcc/testsuite/gcc.dg/torture/float128-div-underflow.c
--- a/gcc/testsuite/gcc.dg/torture/float128-div-underflow.c
+++ b/gcc/testsuite/gcc.dg/torture/float128-div-underflow.c
@@ -1,6 +1,7 @@
 /* Test for spurious underflow from __float128 division.  */
 /* { dg-do run { target i?86-*-* x86_64-*-* ia64-*-* } } */
 /* { dg-options "" } */
+/* { dg-require-effective-target fenv_exceptions } */
 
 #include <fenv.h>
 #include <stdlib.h>
diff --git a/gcc/testsuite/gcc.dg/torture/float128-extend-nan.c b/gcc/testsuite/gcc.dg/torture/float128-extend-nan.c
--- a/gcc/testsuite/gcc.dg/torture/float128-extend-nan.c
+++ b/gcc/testsuite/gcc.dg/torture/float128-extend-nan.c
@@ -1,6 +1,7 @@
 /* Test extensions to __float128 quiet signaling NaNs.  */
 /* { dg-do run { target i?86-*-* x86_64-*-* ia64-*-* } } */
 /* { dg-options "-fsignaling-nans" } */
+/* { dg-require-effective-target fenv_exceptions } */
 
 #include <fenv.h>
 #include <float.h>
diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128-timode-3.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128-timode-3.c
--- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128-timode-3.c
+++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float128-timode-3.c
@@ -2,6 +2,7 @@
    __float128.  */
 /* { dg-do run { target i?86-*-* x86_64-*-* ia64-*-* } } */
 /* { dg-require-effective-target int128 } */
+/* { dg-require-effective-target fenv_exceptions } */
 /* { dg-options "-frounding-math" } */
 
 #include <fenv.h>
-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to