Hi. This fixes broken tests gcc.dg/profile-dir*. I'm going to install the patch.
Martin gcc/testsuite/ChangeLog: 2018-07-02 Martin Liska <mli...@suse.cz> PR testsuite/86366 * gcc.dg/profile-dir-1.c: Fix scanned pattern. * gcc.dg/profile-dir-2.c: Likewise. * gcc.dg/profile-dir-3.c: Likewise. --- gcc/testsuite/gcc.dg/profile-dir-1.c | 2 +- gcc/testsuite/gcc.dg/profile-dir-2.c | 2 +- gcc/testsuite/gcc.dg/profile-dir-3.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/profile-dir-1.c b/gcc/testsuite/gcc.dg/profile-dir-1.c index df49e2361f4..01269f99902 100644 --- a/gcc/testsuite/gcc.dg/profile-dir-1.c +++ b/gcc/testsuite/gcc.dg/profile-dir-1.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-profiling "-fprofile-generate" } */ /* { dg-options "-O -fprofile-generate=. -fdump-ipa-cgraph" } */ -/* { dg-final { scan-ipa-dump " ./profile-dir-1.gcda" "cgraph" } } */ +/* { dg-final { scan-ipa-dump "Using data file \.\/.*#profile-dir-1.gcda" "cgraph" } } */ int main(void) diff --git a/gcc/testsuite/gcc.dg/profile-dir-2.c b/gcc/testsuite/gcc.dg/profile-dir-2.c index 004ba0b0905..13081ce253f 100644 --- a/gcc/testsuite/gcc.dg/profile-dir-2.c +++ b/gcc/testsuite/gcc.dg/profile-dir-2.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-profiling "-fprofile-generate" } */ /* { dg-options "-O -fprofile-generate -fdump-ipa-cgraph" } */ -/* { dg-final { scan-ipa-dump "/profile-dir-2.gcda" "cgraph" } } */ +/* { dg-final { scan-ipa-dump "Using data file .*\/profile-dir-2.gcda" "cgraph" } } */ int main(void) diff --git a/gcc/testsuite/gcc.dg/profile-dir-3.c b/gcc/testsuite/gcc.dg/profile-dir-3.c index 6b47807d850..21f975a93e9 100644 --- a/gcc/testsuite/gcc.dg/profile-dir-3.c +++ b/gcc/testsuite/gcc.dg/profile-dir-3.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-profiling "-fprofile-generate" } */ /* { dg-options "-O -fprofile-generate -fprofile-dir=. -fdump-ipa-cgraph" } */ -/* { dg-final { scan-ipa-dump " ./profile-dir-3.gcda" "cgraph" } } */ +/* { dg-final { scan-ipa-dump "Using data file \.\/.*#profile-dir-3.gcda" "cgraph" } } */ int main(void)