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]

Re: [PATCH] Additional tests for 69987, 69989, 69740


On 03/02/2016 05:43 AM, Richard Biener wrote:
On Wed, Mar 2, 2016 at 1:00 PM, Dominik Vogt <vogt@linux.vnet.ibm.com> wrote:
On Tue, Mar 01, 2016 at 09:22:39AM -0700, Jeff Law wrote:
Two additional regression tests for problems exposed by the 69740
patches. They tickle a different path than the test HJ already
checked in.  Obviously the idea is to have these in place so that
when we attack 69740 again, we don't regress these issues.

Installed on the trunk after verifying they PASS on the trunk.

This on fails on s390x with -m31 (but works with -m64).  (Without
trying it I assume it also fails on s390).

+++ b/gcc/testsuite/gfortran.dg/pr69987.f90

FAIL: gfortran.dg/pr69987.f90   -O  (test for excess errors)
Excess errors:
f951: Warning: -fprefetch-loop-arrays not supported for this target (try -march switches)

Ciao

Dominik ^_^  ^_^

Other testcases simply add -w when using -fprefetch-loop-arrays....

And for reference, the actual patch is attached.

Jeff

commit 1802d3eb4262bfa90de56af05a624d98f483faac
Author: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Wed Mar 2 18:45:26 2016 +0000

    	PR tree-optimization/69987
    	* gfortran.dg/pr69987.f90: Use "-w" to avoid failures when the
    	target does not support -fprefetch-loop-arrays.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233912 138bc75d-0d04-0410-961f-82ee72b054a4

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 699a190..23cee87 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2016-03-02  Jeff Law  <law@redhat.com>
+
+	PR tree-optimization/69987
+	* gfortran.dg/pr69987.f90: Use "-w" to avoid failures when the
+	target does not support -fprefetch-loop-arrays.
+
 2016-03-02  Uros Bizjak  <ubizjak@gmail.com>
 
 	* gcc.target/i386/bmi2-bzhi-2.c: Change to runtime test.
diff --git a/gcc/testsuite/gfortran.dg/pr69987.f90 b/gcc/testsuite/gfortran.dg/pr69987.f90
index 6efc100..9e0c9ff 100644
--- a/gcc/testsuite/gfortran.dg/pr69987.f90
+++ b/gcc/testsuite/gfortran.dg/pr69987.f90
@@ -1,5 +1,5 @@
 ! { dg-do compile }
-! { dg-options "-O3 -fprefetch-loop-arrays" }
+! { dg-options "-O3 -fprefetch-loop-arrays -w" }
 
 MODULE cp_lbfgs
   INTEGER, PARAMETER :: dp=8

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