From 792ce29f1cfe2b34a9f081d929e57135f36c3374 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 4 Sep 2017 09:52:06 +0200 Subject: [PATCH] re PR tree-optimization/70043 (The compiler hangs in a fortran test-case with -Ofast -g -march=haswell) PR tree-optimization/70043 PR testsuite/82093 * gfortran.dg/vect/pr70043.f90 (fn1): Start loop from 1 instead of 0. From-SVN: r251638 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gfortran.dg/vect/pr70043.f90 | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 628c1f3efd6..38294c6e9f4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-09-04 Jakub Jelinek + + PR tree-optimization/70043 + PR testsuite/82093 + * gfortran.dg/vect/pr70043.f90 (fn1): Start loop from 1 instead of 0. + 2017-09-04 Uros Bizjak * gcc.target/i386/adx-check.h (main): Use __get_cpuid_count. diff --git a/gcc/testsuite/gfortran.dg/vect/pr70043.f90 b/gcc/testsuite/gfortran.dg/vect/pr70043.f90 index 36d6a0b3b90..ddc3c3af02c 100644 --- a/gcc/testsuite/gfortran.dg/vect/pr70043.f90 +++ b/gcc/testsuite/gfortran.dg/vect/pr70043.f90 @@ -1,4 +1,5 @@ -! { dg-do compile } +! PR tree-optimization/70043 +! { dg-do compile } ! { dg-additional-options "-Ofast -g" } ! { dg-additional-options "-march=haswell" { target i?86-*-* x86_64-*-* } } @@ -6,7 +7,7 @@ subroutine fn1(a, b) real(8), intent(in) :: b(100) real(8), intent(inout) :: a(100) real(8) c - do i=0,100 + do i=1,100 if( a(i) < 0.0 ) then c = a(i) * b(i) a(i) = a(i) - c / b(i) -- 2.30.2