[GCOV] Add all blocks mode, and function summaries
Mark Mitchell
mark@codesourcery.com
Thu Mar 27 17:14:00 GMT 2003
On Thu, 2003-03-27 at 04:27, Nathan Sidwell wrote:
> Hi,
> this patch adds a mode to gcov where it will output individual counts for
> all basic blocks, rather than just those blocks with a line number note.
> Such a mode makes it easier to spot unexecuted blocks, such as
> if (always-true-expr || never-executed)
>
> built & tested on i686-pc-linux-gnu, ok?
Why does line 13 in the example program have two basic blocks? (It
looks just like line 15 to me, which only has one.)
The new unions should have a comment indicating how to know which
variant of the union is in use.
Finally, I'm not sure why:
Also, each block is considered to occupy a single line of
source, rather than multiple lines.
Does that mean that:
i = 1;
i = 2;
i = 3;
is considered as three basic blocks?
--
Mark Mitchell <mark@codesourcery.com>
CodeSourcery, LLC
More information about the Gcc-patches
mailing list