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
different patch in that the testcase passes even at -O0 there.

        Rainer


2011-03-31  Rainer Orth  <r...@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  <r...@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

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to