From 4567f969b29aeeb2877d23ee08133f09dbada93d Mon Sep 17 00:00:00 2001 From: Janne Blomqvist Date: Wed, 4 Jan 2017 10:06:54 +0200 Subject: [PATCH] PR 78796 Modify testcases due to gfc_trans_string_copy change As r244011 had to be reverted, this change adds back the testcase changes that are needed due to r244003. 2017-01-04 Janne Blomqvist PR fortran/78534 PR fortran/78976 * gfortran.dg/dependency_49.f90: Change scan-tree-dump-times due to gfc_trans_string_copy change to avoid -Wstringop-overflow. * gfortran.dg/transfer_intrinsic_1.f90: Change scan-tree-dump-times due to gfc_trans_string_copy change to avoid -Wstringop-overflow. From-SVN: r244048 --- gcc/testsuite/ChangeLog | 10 ++++++++++ gcc/testsuite/gfortran.dg/dependency_49.f90 | 2 +- gcc/testsuite/gfortran.dg/transfer_intrinsic_1.f90 | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cadfbc977ce..4a1caa7bb04 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2017-01-04 Janne Blomqvist + + PR fortran/78534 + PR fortran/78976 + * gfortran.dg/dependency_49.f90: Change scan-tree-dump-times + due to gfc_trans_string_copy change to avoid -Wstringop-overflow. + * gfortran.dg/transfer_intrinsic_1.f90: Change + scan-tree-dump-times due to gfc_trans_string_copy change to + avoid -Wstringop-overflow. + 2017-01-03 Jeff Law PR tree-optimization/78856 diff --git a/gcc/testsuite/gfortran.dg/dependency_49.f90 b/gcc/testsuite/gfortran.dg/dependency_49.f90 index 73d517e8f76..43ee284169f 100644 --- a/gcc/testsuite/gfortran.dg/dependency_49.f90 +++ b/gcc/testsuite/gfortran.dg/dependency_49.f90 @@ -11,4 +11,4 @@ program main a%x = a%x(2:3) print *,a%x end program main -! { dg-final { scan-tree-dump-times "__var_1" 4 "original" } } +! { dg-final { scan-tree-dump-times "__var_1" 3 "original" } } diff --git a/gcc/testsuite/gfortran.dg/transfer_intrinsic_1.f90 b/gcc/testsuite/gfortran.dg/transfer_intrinsic_1.f90 index 5f46cd0bccf..73a7e7724f5 100644 --- a/gcc/testsuite/gfortran.dg/transfer_intrinsic_1.f90 +++ b/gcc/testsuite/gfortran.dg/transfer_intrinsic_1.f90 @@ -14,4 +14,4 @@ subroutine BytesToString(bytes, string) character(len=*) :: string string = transfer(bytes, string) end subroutine -! { dg-final { scan-tree-dump-times "MIN_EXPR" 1 "original" } } +! { dg-final { scan-tree-dump-times "MIN_EXPR" 2 "original" } } -- 2.30.2