diff options
| -rw-r--r-- | libgcc/ChangeLog | 4 | ||||
| -rw-r--r-- | libgcc/libgcov.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index c29925f..f47f76b 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -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 diff --git a/libgcc/libgcov.c b/libgcc/libgcov.c index 810175aa..d75ae69 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)) { |
