* libgcov.c (__gcov_init): Ignore objects with no functions.

From-SVN: r183103
This commit is contained in:
Nathan Sidwell 2012-01-11 18:50:21 +00:00 committed by Nathan Sidwell
parent 1a2c27e964
commit 2cd8b32cb9
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-01-11 Nathan Sidwell <nathan@acm.org>
* libgcov.c (__gcov_init): Ignore objects with no functions.
2012-01-10 Georg-Johann Lay <avr@gjlay.de>
PR target/49868

View file

@ -686,7 +686,7 @@ gcov_exit (void)
void
__gcov_init (struct gcov_info *info)
{
if (!info->version)
if (!info->version || !info->n_functions)
return;
if (gcov_version (info, info->version, 0))
{