[PATCH, testsuite]: Do not call cleanup-coverage-files for compile tests without -ftest-coverage

Uros Bizjak ubizjak@gmail.com
Sun Aug 8 22:08:00 GMT 2010


Hello!

2010-08-08  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.dg/20030107-1.c: Do not call cleanup-coverage-files.
	* gcc.dg/20030702-1.c: Ditto.
	* gcc.dg/20050309-1.c: Ditto.
	* gcc.dg/20050325-1.c: Ditto.
	* gcc.dg/20050330-2.c: Ditto.
	* gcc.dg/20051201-1.c: Ditto.
	* gcc.dg/gomp/pr27573.c: Ditto.
	* gcc.dg/gomp/pr34610.c: Ditto.
	* gcc.dg/pr24225.c: Ditto.
	* gcc.dg/pr26570.c: Ditto.
	* gcc.dg/pr32773.c: Ditto.
	* g++.dg/gcov/gcov-6.C: Ditto.
	* g++.dg/gomp/pr34608.C: Ditto.
	* gfortran.dg/gomp/pr27573.f90: Ditto.

	* gcc.dg/profile-dir-1.c: Do not call cleanup-coverage-files.  Remove
	dg-require-host-local dg directive.
	* gcc.dg/profile-dir-2.c: Ditto.
	* gcc.dg/profile-dir-3.c: Ditto.

Tested on x86_64-pc-linux-gnu, committed to 4.5 branch and mainline SVN.

Uros.
-------------- next part --------------
Index: gcc.dg/20050330-2.c
===================================================================
--- gcc.dg/20050330-2.c	(revision 162994)
+++ gcc.dg/20050330-2.c	(working copy)
@@ -19,5 +19,3 @@ foo (struct S *x, int y)
     x->b[y] = x->b[y + 1];
   x->b[x->a] = (void *) 0;
 }
-
-/* { dg-final { cleanup-coverage-files } } */
Index: gcc.dg/gomp/pr34610.c
===================================================================
--- gcc.dg/gomp/pr34610.c	(revision 162994)
+++ gcc.dg/gomp/pr34610.c	(working copy)
@@ -26,5 +26,3 @@ foo (int k)
   for (i = 0; i < 10; ++i)
     bar (i);
 }
-
-/* { dg-final { cleanup-coverage-files } } */
Index: gcc.dg/gomp/pr27573.c
===================================================================
--- gcc.dg/gomp/pr27573.c	(revision 162994)
+++ gcc.dg/gomp/pr27573.c	(working copy)
@@ -16,5 +16,3 @@ main (void)
   }
   return 0;
 }
-
-/* { dg-final { cleanup-coverage-files } } */
Index: gcc.dg/pr32773.c
===================================================================
--- gcc.dg/pr32773.c	(revision 162994)
+++ gcc.dg/pr32773.c	(working copy)
@@ -7,5 +7,3 @@ void foo (int *p)
   if (p)
     *p = 0;
 } /* { dg-message "note: \[^\n\]*execution counts estimated" } */
-
-/* { dg-final { cleanup-coverage-files } } */
Index: gcc.dg/20030107-1.c
===================================================================
--- gcc.dg/20030107-1.c	(revision 162994)
+++ gcc.dg/20030107-1.c	(working copy)
@@ -3,5 +3,3 @@
 
 extern void bar(void) __attribute__((noreturn));
 int foo (void) { bar(); }
-
-/* { dg-final { cleanup-coverage-files } } */
Index: gcc.dg/20051201-1.c
===================================================================
--- gcc.dg/20051201-1.c	(revision 162994)
+++ gcc.dg/20051201-1.c	(working copy)
@@ -24,5 +24,3 @@ foo ()
   
   res = bar ();
 }
-
-/* { dg-final { cleanup-coverage-files } } */
Index: gcc.dg/20030702-1.c
===================================================================
--- gcc.dg/20030702-1.c	(revision 162994)
+++ gcc.dg/20030702-1.c	(working copy)
@@ -8,5 +8,3 @@ void test (void)
 {
   fork ();
 }
-
-/* { dg-final { cleanup-coverage-files } } */
Index: gcc.dg/profile-dir-1.c
===================================================================
--- gcc.dg/profile-dir-1.c	(revision 162994)
+++ gcc.dg/profile-dir-1.c	(working copy)
@@ -1,6 +1,5 @@
 /* { dg-do compile } */
 /* { dg-options "-O -fprofile-generate=. -fdump-tree-tree_profile" } */
-/* { dg-require-host-local "" } */
 /* { dg-final { scan-tree-dump " ./profile-dir-1.gcda" "tree_profile" } } */
 
 int
@@ -9,5 +8,4 @@ main(void)
   return 0;
 }
 
-/* { dg-final { cleanup-coverage-files } } */
 /* { dg-final { cleanup-tree-dump "tree_profile" } } */
Index: gcc.dg/pr24225.c
===================================================================
--- gcc.dg/pr24225.c	(revision 162994)
+++ gcc.dg/pr24225.c	(working copy)
@@ -13,5 +13,3 @@ foo (int a, int b)
     return 0;
   }
 }
-
-/* { dg-final { cleanup-coverage-files } } */
Index: gcc.dg/pr26570.c
===================================================================
--- gcc.dg/pr26570.c	(revision 162994)
+++ gcc.dg/pr26570.c	(working copy)
@@ -5,5 +5,3 @@ unsigned test (unsigned a, unsigned b)
 {
   return a / b;
 } /* { dg-message "note: \[^\n\]*execution counts estimated" } */
-
-/* { dg-final { cleanup-coverage-files } } */
Index: gcc.dg/profile-dir-2.c
===================================================================
--- gcc.dg/profile-dir-2.c	(revision 162994)
+++ gcc.dg/profile-dir-2.c	(working copy)
@@ -1,6 +1,5 @@
 /* { dg-do compile } */
 /* { dg-options "-O -fprofile-generate -fdump-tree-tree_profile" } */
-/* { dg-require-host-local "" } */
 /* { dg-final { scan-tree-dump "/profile-dir-2.gcda" "tree_profile" } } */
 
 int
@@ -9,5 +8,4 @@ main(void)
   return 0;
 }
 
-/* { dg-final { cleanup-coverage-files } } */
 /* { dg-final { cleanup-tree-dump "tree_profile" } } */
Index: gcc.dg/20050325-1.c
===================================================================
--- gcc.dg/20050325-1.c	(revision 162994)
+++ gcc.dg/20050325-1.c	(working copy)
@@ -17,5 +17,3 @@ f ()
 {
   g (42, ff);
 }
-
-/* { dg-final { cleanup-coverage-files } } */
Index: gcc.dg/profile-dir-3.c
===================================================================
--- gcc.dg/profile-dir-3.c	(revision 162994)
+++ gcc.dg/profile-dir-3.c	(working copy)
@@ -1,6 +1,5 @@
 /* { dg-do compile } */
 /* { dg-options "-O -fprofile-generate -fprofile-dir=. -fdump-tree-tree_profile" } */
-/* { dg-require-host-local "" } */
 /* { dg-final { scan-tree-dump " ./profile-dir-3.gcda" "tree_profile" } } */
 
 int
@@ -9,5 +8,4 @@ main(void)
   return 0;
 }
 
-/* { dg-final { cleanup-coverage-files } } */
 /* { dg-final { cleanup-tree-dump "tree_profile" } } */
Index: gcc.dg/20050309-1.c
===================================================================
--- gcc.dg/20050309-1.c	(revision 162994)
+++ gcc.dg/20050309-1.c	(working copy)
@@ -34,5 +34,3 @@ test(char *ret, int *counter, void *schema,
   error (1, 0, 0, node, "%s", name);
   return 0;
 }
-
-/* { dg-final { cleanup-coverage-files } } */
Index: gfortran.dg/gomp/pr27573.f90
===================================================================
--- gfortran.dg/gomp/pr27573.f90	(revision 162994)
+++ gfortran.dg/gomp/pr27573.f90	(working copy)
@@ -11,5 +11,3 @@ program pr27573
     end do
   !$omp end parallel
 end
-
-! { dg-final { cleanup-coverage-files } }


More information about the Gcc-patches mailing list