* [PATCH] gcov: Add block_info::block_info (PR gcov-profile/80911).
@ 2017-05-30 9:43 Martin Liška
2017-06-07 9:03 ` Tom de Vries
2017-06-07 16:36 ` Jan Hubicka
0 siblings, 2 replies; 3+ messages in thread
From: Martin Liška @ 2017-05-30 9:43 UTC (permalink / raw)
To: GCC Patches; +Cc: Nathan Sidwell, Tom de Vries
[-- Attachment #1: Type: text/plain, Size: 199 bytes --]
Hello.
Following patch adds default constructor that initializes all fields in block_info.
Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
Ready to be installed?
Martin
[-- Attachment #2: 0001-gcov-Add-block_info-block_info-PR-gcov-profile-80911.patch --]
[-- Type: text/x-patch, Size: 1199 bytes --]
From b4f7a624b25c7cf3ed3ccc6d59fb68d1dabb2873 Mon Sep 17 00:00:00 2001
From: marxin <mliska@suse.cz>
Date: Mon, 29 May 2017 14:00:09 +0200
Subject: [PATCH] gcov: Add block_info::block_info (PR gcov-profile/80911).
gcc/ChangeLog:
2017-05-29 Martin Liska <mliska@suse.cz>
PR gcov-profile/80911
* gcov.c (block_info::block_info): New constructor.
---
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gcov: Add block_info::block_info (PR gcov-profile/80911).
2017-05-30 9:43 [PATCH] gcov: Add block_info::block_info (PR gcov-profile/80911) Martin Liška
@ 2017-06-07 9:03 ` Tom de Vries
2017-06-07 16:36 ` Jan Hubicka
1 sibling, 0 replies; 3+ messages in thread
From: Tom de Vries @ 2017-06-07 9:03 UTC (permalink / raw)
To: GCC Patches; +Cc: Martin Liška, Nathan Sidwell
On 05/30/2017 11:41 AM, Martin Liška wrote:
> Hello.
>
> Following patch adds default constructor that initializes all fields in block_info.
>
Which fixes the 77 corrupted gcno regressions that currently show up
when compiling trunk with g++ 4.4.3.
> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
>
> Ready to be installed?
Ping.
Thanks,
- Tom
> Martin
>
>
> 0001-gcov-Add-block_info-block_info-PR-gcov-profile-80911.patch
>
>
> From b4f7a624b25c7cf3ed3ccc6d59fb68d1dabb2873 Mon Sep 17 00:00:00 2001
> From: marxin <mliska@suse.cz>
> Date: Mon, 29 May 2017 14:00:09 +0200
> Subject: [PATCH] gcov: Add block_info::block_info (PR gcov-profile/80911).
>
> gcc/ChangeLog:
>
> 2017-05-29 Martin Liska <mliska@suse.cz>
>
> PR gcov-profile/80911
> * gcov.c (block_info::block_info): New constructor.
> ---
> 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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gcov: Add block_info::block_info (PR gcov-profile/80911).
2017-05-30 9:43 [PATCH] gcov: Add block_info::block_info (PR gcov-profile/80911) Martin Liška
2017-06-07 9:03 ` Tom de Vries
@ 2017-06-07 16:36 ` Jan Hubicka
1 sibling, 0 replies; 3+ messages in thread
From: Jan Hubicka @ 2017-06-07 16:36 UTC (permalink / raw)
To: Martin Li?ka; +Cc: GCC Patches, Nathan Sidwell, Tom de Vries
>
> 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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-07 16:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-30 9:43 [PATCH] gcov: Add block_info::block_info (PR gcov-profile/80911) Martin Liška
2017-06-07 9:03 ` Tom de Vries
2017-06-07 16:36 ` Jan Hubicka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).