Re: [PATCH] Fix profile corruption with -O1 (PR gcov-profile/79259)

2017-01-30 Thread Martin Liška
On 01/30/2017 04:12 PM, Richard Biener wrote: > On Mon, Jan 30, 2017 at 4:09 PM, Martin Liška wrote: >> Hello. >> >> During investigation of another issue, I accidentally came a profile >> inconsistency >> mentioned in the PR. Problem is that flag_ipa_bit_cp is enabled in use stage >> of PGO >>

Re: [PATCH] Fix profile corruption with -O1 (PR gcov-profile/79259)

2017-01-30 Thread Richard Biener
On Mon, Jan 30, 2017 at 4:09 PM, Martin Liška wrote: > Hello. > > During investigation of another issue, I accidentally came a profile > inconsistency > mentioned in the PR. Problem is that flag_ipa_bit_cp is enabled in use stage > of PGO > and not in instrumentation stage. That causes ccp1 to f

[PATCH] Fix profile corruption with -O1 (PR gcov-profile/79259)

2017-01-30 Thread Martin Liška
0:00:00 2001 From: marxin Date: Mon, 30 Jan 2017 10:55:36 +0100 Subject: [PATCH] Fix profile corruption with -O1 (PR gcov-profile/79259) gcc/ChangeLog: 2017-01-30 Martin Liska PR gcov-profile/79259 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/ -fprofile-generate. gcc/testsuite/Ch