Fix profile corruption with -O1 (PR gcov-profile/79259)
commitc04d26729def4384a829cb1c4a403c997b33a74a
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Jan 2017 15:35:57 +0000 (30 15:35 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Jan 2017 15:35:57 +0000 (30 15:35 +0000)
tree3d626a4862a93b559113fcd051f64f20bfe8f2de
parent209301131852c3d935976b1116bba319068952ed
Fix profile corruption with -O1 (PR gcov-profile/79259)

2017-01-30  Martin Liska  <mliska@suse.cz>

PR gcov-profile/79259
* opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
-fprofile-generate.
2017-01-30  Martin Liska  <mliska@suse.cz>

PR gcov-profile/79259
* g++.dg/tree-prof/pr79259.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245031 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-prof/pr79259.C [new file with mode: 0644]