Re: [PATCH] Make groups more generic (PR gcov-profile/84548).

2018-02-27 Thread Martin Liška
On 02/27/2018 02:01 PM, Nathan Sidwell wrote: > On 02/27/2018 07:45 AM, Martin Liška wrote: >> Hi. >> >> Considering following C++ code snippet: > >> gcc/ChangeLog: >> >> 2018-02-26  Martin Liska  >> >> PR gcov-profile/84548 >> * gcov.c (process_file): Allow partial

Re: [PATCH] Make groups more generic (PR gcov-profile/84548).

2018-02-27 Thread Nathan Sidwell
On 02/27/2018 07:45 AM, Martin Liška wrote: Hi. Considering following C++ code snippet: gcc/ChangeLog: 2018-02-26 Martin Liska PR gcov-profile/84548 * gcov.c (process_file): Allow partial overlap and consider it also as group functions.

[PATCH] Make groups more generic (PR gcov-profile/84548).

2018-02-27 Thread Martin Liška
Hi. Considering following C++ code snippet: struct A { static int foo () { return 1; }; static int bar () { int x; return 2; } }; we should consider functions foo and bar as 2 within a single group. Even though these functions are not 'clones', they still overlap and it's proper to group