diff options
author | nemet <nemet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-21 23:35:47 +0000 |
---|---|---|
committer | nemet <nemet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-21 23:35:47 +0000 |
commit | fe66e922549f2ba8cfbd2509c6032b4b9fb5e3b8 (patch) | |
tree | a30b48534fc2c68fb2d19c5bd58f2529bcf5d3f4 /gcc/coverage.c | |
parent | e2ba372fded36a213abe4f7a7e85ce8612509838 (diff) | |
download | gcc-fe66e922549f2ba8cfbd2509c6032b4b9fb5e3b8.tar.gz |
* coverage.c: Include tree-pass.h.
(coverage_counter_alloc): Print da_file_name to the dump file.
testsuite/
* gcc.dg/profile-dir-1.c, gcc.dg/profile-dir-2.c,
gcc.dg/profile-dir-3.c: Generate tree_profile dump. Check gcda
file name there instead of the assembly. Cleanup tree_profile
dump file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134541 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r-- | gcc/coverage.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c index cd1c13e2d57..ec8d589539f 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c @@ -43,6 +43,7 @@ along with GCC; see the file COPYING3. If not see #include "hashtab.h" #include "tree-iterator.h" #include "cgraph.h" +#include "tree-pass.h" #include "gcov-io.c" @@ -421,6 +422,9 @@ coverage_counter_alloc (unsigned counter, unsigned num) ASM_GENERATE_INTERNAL_LABEL (buf, "LPBX", counter + 1); DECL_NAME (tree_ctr_tables[counter]) = get_identifier (buf); DECL_ALIGN (tree_ctr_tables[counter]) = TYPE_ALIGN (gcov_type_node); + + if (dump_file) + fprintf (dump_file, "Using data file %s\n", da_file_name); } fn_b_ctrs[counter] = fn_n_ctrs[counter]; fn_n_ctrs[counter] += num; |