This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite, committed] Fix scan pattern in gfortran.dg/implied_do_io_1.f90
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: Nicolas Koenig <koenigni at student dot ethz dot ch>, Dominique d'Humières <dominiq at lps dot ens dot fr>
- Cc: Bernhard Reutner-Fischer <rep dot dot dot nop at gmail dot com>, gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 2 Nov 2017 09:25:40 +0100
- Subject: [testsuite, committed] Fix scan pattern in gfortran.dg/implied_do_io_1.f90
- Authentication-results: sourceware.org; auth=none
- References: <92F638BD-768E-4C83-9BA9-0FACFC7F6C07@lps.ens.fr> <53722520-52ae-0fa7-d732-f30995c9f93a@student.ethz.ch> <BA409A07-2700-4F8C-B8EA-6093D1B7C4F4@gmail.com> <A6B37DB3-F797-4B44-BCBF-E7AB83BFC11F@lps.ens.fr> <638D5570-F9B9-4522-A123-CDC0B95D4227@lps.ens.fr> <84e2e0b8-26d2-bf0c-35ae-dd8f63a111fe@student.ethz.ch> <ADF94D00-F826-4741-9A5D-C01BB485F768@lps.ens.fr> <28B2EA4E-59C0-4E78-B04B-ECAD49EB614B@lps.ens.fr> <2E75B017-9A43-4734-BF38-8FA7A69962B8@lps.ens.fr> <ce3115b3-0123-2fc6-a390-ee3318e35e60@student.ethz.ch>
[ was: Re: [Patch, fortran] PR35339 Optimize implied do loops in io
statements ]
On 06/03/2017 03:48 PM, Nicolas Koenig wrote:
! { dg-final { scan-tree-dump-times "while" 7 "original" } }
Hi,
I build and tested gcc in a directory with "while" in the path. That
made this scan fail (with 25 matches, instead of 7), because the dump
contains lines with <parm>.common.filename = &"<path>".
Fixed by making the scan more precise.
Committed as obvious.
Thanks,
- Tom
Fix scan pattern in gfortran.dg/implied_do_io_1.f90
2017-11-02 Tom de Vries <tom@codesourcery.com>
* gfortran.dg/implied_do_io_1.f90: Fix scan-tree-dump-times pattern.
---
gcc/testsuite/gfortran.dg/implied_do_io_1.f90 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gfortran.dg/implied_do_io_1.f90 b/gcc/testsuite/gfortran.dg/implied_do_io_1.f90
index e4a6d6b..aef36af 100644
--- a/gcc/testsuite/gfortran.dg/implied_do_io_1.f90
+++ b/gcc/testsuite/gfortran.dg/implied_do_io_1.f90
@@ -56,4 +56,4 @@ program main
1000 format (A2,100I4)
end program main
-! { dg-final { scan-tree-dump-times "while" 7 "original" } }
+! { dg-final { scan-tree-dump-times "(?n)^\\s*while \\(1\\)$" 7 "original" } }