annotate gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-require-effective-target global_constructor } */
kono
parents:
diff changeset
2 /* { dg-options "-O2 -fprofile-generate -fprofile-update=single -fdump-tree-optimized" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 __attribute__ ((no_profile_instrument_function))
kono
parents:
diff changeset
5 int foo()
kono
parents:
diff changeset
6 {
kono
parents:
diff changeset
7 return 0;
kono
parents:
diff changeset
8 }
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 __attribute__ ((no_profile_instrument_function))
kono
parents:
diff changeset
11 int bar()
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 return 1;
kono
parents:
diff changeset
14 }
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 int main ()
kono
parents:
diff changeset
17 {
kono
parents:
diff changeset
18 return foo ();
kono
parents:
diff changeset
19 }
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 /* { dg-final { scan-tree-dump-times "__gcov0\\.main.* = PROF_edge_counter" 1 "optimized"} } */
kono
parents:
diff changeset
22 /* { dg-final { scan-tree-dump-times "__gcov_indirect_call_profiler_v2" 1 "optimized" } } */
kono
parents:
diff changeset
23 /* { dg-final { scan-tree-dump-times "__gcov_time_profiler_counter = " 1 "optimized" } } */
kono
parents:
diff changeset
24 /* { dg-final { scan-tree-dump-times "__gcov_init" 1 "optimized" } } */