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-Tag: releases/gcc-4.7.0~1044 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2cd8b32cb96515850469a49bbba1a3a5a147dbad;p=thirdparty%2Fgcc.git * libgcov.c (__gcov_init): Ignore objects with no functions. From-SVN: r183103 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index c29925f93fa7..f47f76bbb9c8 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 810175aafcfa..d75ae6955ede 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)) {