Remove legacy testcase for -fprofile-generate=./

Message ID fe0becea-9245-67e4-6c84-e4bb8133f927@suse.cz
State New
Headers show
Series
  • Remove legacy testcase for -fprofile-generate=./
Related show

Commit Message

Martin Liška July 3, 2018, 5:24 p.m.
Hi.

As new option mangles absolute path of a compiled file, it's hard
to come up with a scan-file pattern. Note similar test is done in
gcc.dg/profile-dir-*.c that I adjusted few days ago.

Ready for trunk?
Thanks,
Martin

gcc/testsuite/ChangeLog:

2018-07-03  Martin Liska  <mliska@suse.cz>

	* gcc.dg/pr47793.c: Remove.
---
  gcc/testsuite/gcc.dg/pr47793.c | 13 -------------
  1 file changed, 13 deletions(-)
  delete mode 100644 gcc/testsuite/gcc.dg/pr47793.c

Comments

Jeff Law July 4, 2018, 2:25 a.m. | #1
On 07/03/2018 11:24 AM, Martin Liška wrote:
> Hi.

> 

> As new option mangles absolute path of a compiled file, it's hard

> to come up with a scan-file pattern. Note similar test is done in

> gcc.dg/profile-dir-*.c that I adjusted few days ago.

> 

> Ready for trunk?

> Thanks,

> Martin

> 

> gcc/testsuite/ChangeLog:

> 

> 2018-07-03  Martin Liska  <mliska@suse.cz>

> 

>     * gcc.dg/pr47793.c: Remove.

OK.

Note that I'd consider tests which test profiling to fall under the gcov
maintainership as well :-)

jeff

Patch

diff --git a/gcc/testsuite/gcc.dg/pr47793.c b/gcc/testsuite/gcc.dg/pr47793.c
deleted file mode 100644
index 0ee1aaee421..00000000000
--- a/gcc/testsuite/gcc.dg/pr47793.c
+++ /dev/null
@@ -1,13 +0,0 @@ 
-/* Bug pr47793: Allow relative paths in profile-generate.  */
-/* { dg-do run } */
-/* { dg-options "-O -fprofile-generate=./" } */
-/* { dg-require-profiling "-fprofile-generate" } */
-/* { dg-final { scan-file pr47793.gcda "."} } */
-
-int
-main(void)
-{
-  return 0;
-}
-
-/* { dg-final { cleanup-coverage-files } } */