* libgcov.c (__gcov_init): Ignore objects with no functions.
From-SVN: r183103
This commit is contained in:
parent
1a2c27e964
commit
2cd8b32cb9
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue