Re: [PATCH] Fix segfault in gcov.c (PR gcov-profile/81561).

2017-08-01 Thread Martin Liška
On 08/01/2017 03:46 PM, Richard Biener wrote: On Tue, Aug 1, 2017 at 2:02 PM, Martin Liška wrote: On 07/27/2017 01:48 PM, Richard Biener wrote: On Thu, Jul 27, 2017 at 12:12 PM, Martin Liška wrote: Hello. As reported in mentioned PR, we segfault in gcov tool when one uses -a. It's caused

Re: [PATCH] Fix segfault in gcov.c (PR gcov-profile/81561).

2017-08-01 Thread Richard Biener
On Tue, Aug 1, 2017 at 2:02 PM, Martin Liška wrote: > On 07/27/2017 01:48 PM, Richard Biener wrote: >> >> On Thu, Jul 27, 2017 at 12:12 PM, Martin Liška wrote: >>> >>> Hello. >>> >>> As reported in mentioned PR, we segfault in gcov tool when one uses -a. >>> It's caused by fact >>> that vectors b

Re: [PATCH] Fix segfault in gcov.c (PR gcov-profile/81561).

2017-08-01 Thread Martin Liška
On 07/27/2017 01:48 PM, Richard Biener wrote: On Thu, Jul 27, 2017 at 12:12 PM, Martin Liška wrote: Hello. As reported in mentioned PR, we segfault in gcov tool when one uses -a. It's caused by fact that vectors blocks and block_lists have indices kept in sync and as one removes an element f

Re: [PATCH] Fix segfault in gcov.c (PR gcov-profile/81561).

2017-07-27 Thread Martin Liška
On 07/27/2017 01:48 PM, Richard Biener wrote: > On Thu, Jul 27, 2017 at 12:12 PM, Martin Liška wrote: >> Hello. >> >> As reported in mentioned PR, we segfault in gcov tool when one uses -a. It's >> caused by fact >> that vectors blocks and block_lists have indices kept in sync and as one >> remo

Re: [PATCH] Fix segfault in gcov.c (PR gcov-profile/81561).

2017-07-27 Thread Richard Biener
On Thu, Jul 27, 2017 at 12:12 PM, Martin Liška wrote: > Hello. > > As reported in mentioned PR, we segfault in gcov tool when one uses -a. It's > caused by fact > that vectors blocks and block_lists have indices kept in sync and as one > removes an element > from blocks via: >blocked.erase (

[PATCH] Fix segfault in gcov.c (PR gcov-profile/81561).

2017-07-27 Thread Martin Liška
e: Wed, 26 Jul 2017 14:21:52 +0200 Subject: [PATCH] Fix segfault in gcov.c (PR gcov-profile/81561). gcc/ChangeLog: 2017-07-26 Martin Liska PR gcov-profile/81561 * gcov.c (unblock): Make unblocking safe as we need to preserve index correspondence of blocks and block_lists. --- gcc/gcov.c | 1