This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [GCOV] Add all blocks mode, and function summaries


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 at codesourcery dot com>
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]