right. Rong, the fix would be just change ctr array size to 1. For each function, there should be at least one kind of counters -- see the assertion in build_fn_info_type. There are some code that do 'sizeof(gcov_fn_info)' when computing heap size -- they can be adjusted or leave it as it is (if not doing memcpy for the whole array).
David On Fri, Jul 11, 2014 at 8:44 AM, Jakub Jelinek <ja...@redhat.com> wrote: > On Fri, Jul 11, 2014 at 08:42:27AM -0700, Xinliang David Li wrote: >> I wonder why. The struct definition for gcov_fn_info has not changed >> in this patch. > > Perhaps it has been used only in C until now? > > Jakub