diff mbox

[testsuite] Only XFAIL gfortran.dg/g77/cabs.f execution at -O0 on IRIX 6.5

Message ID yddk4ffjp98.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth March 31, 2011, 3:14 p.m. UTC
I noticed that on IRIX 6.5, gfortran.dg/g77/cabs.f XPASSes at all
optimization levels except -O0.  The following patch reflects this.

Tested with the appropriate runtest invocations, installed on mainline
and 4.6 branch.

The 4.5 branch, which still support the O32 ABI, needs the slightly
diff mbox

Patch

different patch in that the testcase passes even at -O0 there.

	Rainer


2011-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR target/16292
	* gfortran.dg/g77/cabs.f: Only xfail execution on mips-sgi-irix6*
	with -O0.

diff --git a/gcc/testsuite/gfortran.dg/g77/cabs.f b/gcc/testsuite/gfortran.dg/g77/cabs.f
--- a/gcc/testsuite/gfortran.dg/g77/cabs.f
+++ b/gcc/testsuite/gfortran.dg/g77/cabs.f
@@ -1,4 +1,5 @@ 
-c { dg-do run { xfail mips-sgi-irix6* } } PR 16292
+c { dg-do run }
+c { dg-xfail-run-if "PR target/16292" { mips-sgi-irix6* } { -O0 } }
       program cabs_1
       complex      z0
       real         r0


2011-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR target/16292
	* gfortran.dg/g77/cabs.f: Only xfail execution on mips-sgi-irix6*
	with -O0 except with -mabi=32.

Index: gcc/testsuite/gfortran.dg/g77/cabs.f
===================================================================
--- gcc/testsuite/gfortran.dg/g77/cabs.f	(revision 171785)
+++ gcc/testsuite/gfortran.dg/g77/cabs.f	(working copy)
@@ -1,4 +1,5 @@ 
-c { dg-do run { xfail mips-sgi-irix6* } } PR 16292
+c { dg-do run }
+c { dg-xfail-run-if "PR target/16292" { mips-sgi-irix6* } { -O0 } { -mabi=32 } }
       program cabs_1
       complex      z0
       real         r0