This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [GCOV] Add all blocks mode, and function summaries
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 27 Mar 2003 08:56:20 -0800
- Subject: Re: [GCOV] Add all blocks mode, and function summaries
- Organization: CodeSourcery, LLC
- References: <3E82EE24.90605@codesourcery.com>
- Reply-to: mark at codesourcery dot com
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