mirror of git://gcc.gnu.org/git/gcc.git
* libgcov.c (__gcov_init): Ignore objects with no functions.
From-SVN: r183103
This commit is contained in:
parent
1a2c27e964
commit
2cd8b32cb9
|
@ -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>
|
2012-01-10 Georg-Johann Lay <avr@gjlay.de>
|
||||||
|
|
||||||
PR target/49868
|
PR target/49868
|
||||||
|
|
|
@ -686,7 +686,7 @@ gcov_exit (void)
|
||||||
void
|
void
|
||||||
__gcov_init (struct gcov_info *info)
|
__gcov_init (struct gcov_info *info)
|
||||||
{
|
{
|
||||||
if (!info->version)
|
if (!info->version || !info->n_functions)
|
||||||
return;
|
return;
|
||||||
if (gcov_version (info, info->version, 0))
|
if (gcov_version (info, info->version, 0))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue