This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] gcov: Add block_info::block_info (PR gcov-profile/80911).
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Martin Li?ka <mliska at suse dot cz>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Nathan Sidwell <nathan at acm dot org>, Tom de Vries <Tom_deVries at mentor dot com>
- Date: Wed, 7 Jun 2017 18:36:17 +0200
- Subject: Re: [PATCH] gcov: Add block_info::block_info (PR gcov-profile/80911).
- Authentication-results: sourceware.org; auth=none
- References: <277f98a1-9b9a-00e4-071d-83815dda5058@suse.cz>
>
> 2017-05-29 Martin Liska <mliska@suse.cz>
>
> PR gcov-profile/80911
> * gcov.c (block_info::block_info): New constructor.
OK, thanks!
Honza
> ---
> gcc/gcov.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/gcc/gcov.c b/gcc/gcov.c
> index a5aa4aadcac..e324cadad82 100644
> --- a/gcc/gcov.c
> +++ b/gcc/gcov.c
> @@ -132,6 +132,9 @@ struct block_location_info
>
> typedef struct block_info
> {
> + /* Constructor. */
> + block_info ();
> +
> /* Chain of exit and entry arcs. */
> arc_t *succ;
> arc_t *pred;
> @@ -173,6 +176,14 @@ typedef struct block_info
>
> } block_t;
>
> +block_info::block_info (): succ (NULL), pred (NULL), num_succ (0), num_pred (0),
> + id (0), count (0), count_valid (0), valid_chain (0), invalid_chain (0),
> + exceptional (0), is_call_site (0), is_call_return (0), is_nonlocal_return (0),
> + locations (), chain (NULL)
> +{
> + cycle.arc = NULL;
> +}
> +
> /* Describes a single function. Contains an array of basic blocks. */
>
> typedef struct function_info
> --
> 2.12.2
>