From: Nathan Sidwell Date: Wed, 11 Jan 2012 18:50:21 +0000 (+0000) Subject: * libgcov.c (__gcov_init): Ignore objects with no functions. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2cd8b32cb96515850469a49bbba1a3a5a147dbad;p=gcc.git * libgcov.c (__gcov_init): Ignore objects with no functions. From-SVN: r183103 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index c29925f93fa..f47f76bbb9c 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,7 @@ +2012-01-11 Nathan Sidwell + + * libgcov.c (__gcov_init): Ignore objects with no functions. + 2012-01-10 Georg-Johann Lay PR target/49868 diff --git a/libgcc/libgcov.c b/libgcc/libgcov.c index 810175aafcf..d75ae6955ed 100644 --- a/libgcc/libgcov.c +++ b/libgcc/libgcov.c @@ -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)) {