This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix profiledbootstrap failure caused by warning
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 13 Dec 2003 01:30:05 +0100
- Subject: Fix profiledbootstrap failure caused by warning
Hi,
as disucssed with Zack, we should use inform instead of warning when
profile is missing so correct application builds with -Werror despite
the fact that some of object was not profiled.
2003-12-13 Jan Hubicka <jh@suse.cz>
* coverage.c (get_coverage_counts): Use inform instead of warning
about missing profile.
Index: coverage.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/coverage.c,v
retrieving revision 1.23
diff -c -3 -p -r1.23 coverage.c
*** coverage.c 9 Oct 2003 05:44:51 -0000 1.23
--- coverage.c 13 Dec 2003 00:18:08 -0000
*************** get_coverage_counts (unsigned counter, u
*** 306,313 ****
static int warned = 0;
if (!warned++)
! warning ("file %s not found, execution counts assumed to be zero",
! da_file_name);
return NULL;
}
--- 306,313 ----
static int warned = 0;
if (!warned++)
! inform ("file %s not found, execution counts assumed to be zero",
! da_file_name);
return NULL;
}