From fe66e922549f2ba8cfbd2509c6032b4b9fb5e3b8 Mon Sep 17 00:00:00 2001 From: nemet Date: Mon, 21 Apr 2008 23:35:47 +0000 Subject: * 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 --- gcc/coverage.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/coverage.c') 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; -- cgit v1.2.1