* libgcov.c (__gcov_init): Ignore objects with no functions.
authorNathan Sidwell <nathan@acm.org>
Wed, 11 Jan 2012 18:50:21 +0000 (18:50 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 11 Jan 2012 18:50:21 +0000 (18:50 +0000)
From-SVN: r183103

libgcc/ChangeLog
libgcc/libgcov.c

index c29925f93fa7a4c6ff00b09cc5950bfc7fb2c29a..f47f76bbb9c8d33cc2204c5a71570b1d4d8717ae 100644 (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
index 810175aafcfaaebdeb1cd362dfb26c8368eb6079..d75ae6955ede5b5e5c91f7dc4d5af83ee8408439 100644 (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))
     {