Index: gcc/testsuite/g++.dg/debug/pr46338.C
===================================================================
--- gcc/testsuite/g++.dg/debug/pr46338.C	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/g++.dg/debug/pr46338.C	2011-12-04 11:24:50.000000000 +0000
@@ -1,5 +1,6 @@
 // PR debug/46338
 // { dg-do compile }
+// { dg-require-profiling "-fprofile-generate" }
 // { dg-options "-O -fprofile-generate -fcompare-debug" }
 
 void bar ();
Index: gcc/testsuite/g++.dg/torture/pr39732.C
===================================================================
--- gcc/testsuite/g++.dg/torture/pr39732.C	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/g++.dg/torture/pr39732.C	2011-12-04 11:24:50.000000000 +0000
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-profiling "-fprofile-generate" } */
 /* { dg-options "-fprofile-generate" } */
 
 template<class _CharT>     struct char_traits;
Index: gcc/testsuite/g++.dg/torture/pr40642.C
===================================================================
--- gcc/testsuite/g++.dg/torture/pr40642.C	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/g++.dg/torture/pr40642.C	2011-12-04 11:24:50.000000000 +0000
@@ -1,4 +1,5 @@
 // { dg-do compile }
+/* { dg-require-profiling "-fprofile-generate" } */
 // { dg-options "-fprofile-generate" }
 
 // GCC used to ICE with some EH edge missing.
Index: gcc/testsuite/gcc.c-torture/compile/pr44686.c
===================================================================
--- gcc/testsuite/gcc.c-torture/compile/pr44686.c	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/gcc.c-torture/compile/pr44686.c	2011-12-04 11:24:50.000000000 +0000
@@ -1,3 +1,4 @@
+/* { dg-require-profiling "-fprofile-generate" } */
 /* { dg-options "-fipa-pta -fprofile-generate" } */
 void *
 memcpy (void *a, const void *b, __SIZE_TYPE__ len)
Index: gcc/testsuite/gcc.dg/20050309-1.c
===================================================================
--- gcc/testsuite/gcc.dg/20050309-1.c	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/gcc.dg/20050309-1.c	2011-12-04 11:24:50.000000000 +0000
@@ -2,6 +2,7 @@
    output reloads.  */
 
 /* { dg-do compile } */
+/* { dg-require-profiling "-fprofile-generate" } */
 /* { dg-options "-O2 -fprofile-generate" } */
 
 char *
Index: gcc/testsuite/gcc.dg/20050330-2.c
===================================================================
--- gcc/testsuite/gcc.dg/20050330-2.c	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/gcc.dg/20050330-2.c	2011-12-04 11:24:50.000000000 +0000
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-require-profiling "-fprofile-generate" } */
 /* { dg-options "-O2 -fprofile-generate" } */
 
 struct S
Index: gcc/testsuite/gcc.dg/20051201-1.c
===================================================================
--- gcc/testsuite/gcc.dg/20051201-1.c	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/gcc.dg/20051201-1.c	2011-12-04 11:24:50.000000000 +0000
@@ -2,6 +2,7 @@
    tree_flow_call_edges_add.  */
 
 /* { dg-do compile } */
+/* { dg-require-profiling "-fprofile-generate" } */
 /* { dg-options "-O1 -fprofile-generate -Wno-attributes" } */
 
 static __attribute__ ((always_inline)) void 
Index: gcc/testsuite/gcc.dg/gomp/pr27573.c
===================================================================
--- gcc/testsuite/gcc.dg/gomp/pr27573.c	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/gcc.dg/gomp/pr27573.c	2011-12-04 11:24:50.000000000 +0000
@@ -1,5 +1,6 @@
 /* PR middle-end/27573 */
 /* { dg-do compile } */
+/* { dg-require-profiling "-fprofile-generate" } */
 /* { dg-options "-O2 -fopenmp -fprofile-generate" } */
 
 extern int puts (const char *);
Index: gcc/testsuite/gcc.dg/pr46255.c
===================================================================
--- gcc/testsuite/gcc.dg/pr46255.c	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/gcc.dg/pr46255.c	2011-12-04 11:24:50.000000000 +0000
@@ -1,5 +1,6 @@
 /* PR debug/46255 */
 /* { dg-do compile } */
+/* { dg-require-profiling "-fprofile-generate" } */
 /* { dg-options "-fcompare-debug -fprofile-generate -O" } */
 
 int bar (void);
Index: gcc/testsuite/gcc.dg/profile-dir-1.c
===================================================================
--- gcc/testsuite/gcc.dg/profile-dir-1.c	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/gcc.dg/profile-dir-1.c	2011-12-04 11:24:50.000000000 +0000
@@ -1,4 +1,5 @@
 /* { 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" } } */
 
Index: gcc/testsuite/gcc.dg/profile-dir-2.c
===================================================================
--- gcc/testsuite/gcc.dg/profile-dir-2.c	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/gcc.dg/profile-dir-2.c	2011-12-04 11:24:50.000000000 +0000
@@ -1,4 +1,5 @@
 /* { 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" } } */
 
Index: gcc/testsuite/gcc.dg/profile-dir-3.c
===================================================================
--- gcc/testsuite/gcc.dg/profile-dir-3.c	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/gcc.dg/profile-dir-3.c	2011-12-04 11:24:50.000000000 +0000
@@ -1,4 +1,5 @@
 /* { 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" } } */
 
Index: gcc/testsuite/gcc.dg/profile-generate-1.c
===================================================================
--- gcc/testsuite/gcc.dg/profile-generate-1.c	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/gcc.dg/profile-generate-1.c	2011-12-04 11:24:50.000000000 +0000
@@ -1,4 +1,5 @@
 /* Bug 16325.  */
+/* { dg-require-profiling "-fprofile-generate" } */
 /* { dg-options "-O -fprofile-generate" } */
 
 extern void abort (void);
Index: gcc/testsuite/gfortran.dg/gomp/pr27573.f90
===================================================================
--- gcc/testsuite/gfortran.dg/gomp/pr27573.f90	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/gfortran.dg/gomp/pr27573.f90	2011-12-04 11:24:50.000000000 +0000
@@ -1,5 +1,6 @@
 ! PR middle-end/27573
 ! { dg-do compile }
+! { dg-require-profiling "-fprofile-generate" }
 ! { dg-options "-O2 -fopenmp -fprofile-generate" }
 
 program pr27573
Index: gcc/testsuite/gcc.dg/profile-generate-3.c
===================================================================
--- gcc/testsuite/gcc.dg/profile-generate-3.c	2011-12-04 08:52:27.000000000 +0000
+++ gcc/testsuite/gcc.dg/profile-generate-3.c	2011-12-04 11:24:50.000000000 +0000
@@ -1,5 +1,5 @@
 /* { dg-do link } */
-/* { dg-require-profiling "" } */
+/* { dg-require-profiling "-fprofile-generate" } */
 /* { dg-options "-fprofile-generate=." } */
 
 int
