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

login
register
mail settings
Submitter Rainer Orth
Date March 31, 2011, 3:14 p.m.
Message ID <yddk4ffjp98.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
Download mbox | patch
Permalink /patch/89086/
State New
Headers show

Comments

Rainer Orth - March 31, 2011, 3:14 p.m.
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

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