This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testsuite] Skip gfortran.dg/erf_3.F90 and gfortran.dg/round_4.f90 on Solaris 9 (PR libfortran/59313, libfortran/58015)


As described in the PRs, gfortran.dg/erf_3.F90 and
gfortran.dg/round_4.f90 fail to link on Solaris 9/SPARC resp. Solaris 9/SPARC
and x86 due to missing C99 support in libm.  Eric already closed the
first PR since Solaris 9 support has been obsoleted in GCC 4.9, so I
think it's best to skip the tests since it's unlikely that any
fix/workaround will be forthcoming before the 4.9 release.  It's
necessary to skip the tests instead of xfailing them since otherwise we
still get warnings like

WARNING: gfortran.dg/round_4.f90  -O0  compilation failed to produce executable

I just added PR references with the dg-skip-if since I didn't see the
point of repeating the bugzilla information in the testcases.

Tested with the appropriate runtest invocations on
sparc-sun-solaris2.{9, 11}, i386-pc-solaris2.{9, 11}, and
x86_64-unknown-linux-gnu.

Ok for mainline?

	Rainer


2014-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR libfortran/59313
	* gfortran.dg/erf_3.F90: Skip on sparc*-*-solaris2.9*.

	PR libfortran/58015
	* gfortran.dg/round_4.f90: Skip on *-*-solaris2.9*.

# HG changeset patch
# Parent 90c24fc64b8c05b82230b6e1968ba7a066f9c907
XFAIL gfortran.dg/erf_3.F90 and gfortran.dg/round_4.f90 on Solaris 9 (PR libfortran/59313, libfortran/58015)

diff --git a/gcc/testsuite/gfortran.dg/erf_3.F90 b/gcc/testsuite/gfortran.dg/erf_3.F90
--- a/gcc/testsuite/gfortran.dg/erf_3.F90
+++ b/gcc/testsuite/gfortran.dg/erf_3.F90
@@ -1,6 +1,7 @@
 ! { dg-do run { xfail spu-*-* ia64-*-linux* } }
 ! { dg-options "-fno-range-check -ffree-line-length-none -O0" }
 ! { dg-add-options ieee }
+! { dg-skip-if "PR libfortran/59313" { sparc*-*-solaris2.9* } }
 !
 ! Check that simplification functions and runtime library agree on ERF,
 ! ERFC and ERFC_SCALED, for quadruple-precision.
diff --git a/gcc/testsuite/gfortran.dg/round_4.f90 b/gcc/testsuite/gfortran.dg/round_4.f90
--- a/gcc/testsuite/gfortran.dg/round_4.f90
+++ b/gcc/testsuite/gfortran.dg/round_4.f90
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-add-options ieee }
+! { dg-skip-if "PR libfortran/58015" { *-*-solaris2.9* } }
 !
 ! PR fortran/35862
 !
-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]