re PR c++/79267 (internal compiler error with -O3 or -O2 -finline-functions)
authorJakub Jelinek <jakub@redhat.com>
Tue, 31 Jan 2017 08:33:36 +0000 (09:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 31 Jan 2017 08:33:36 +0000 (09:33 +0100)
commitb6dae84928a112b2f176ad168d8c5b7e0ecdd5cb
tree4e48957da84e536c6dd21300b0f28f58c8e79ec8
parent40fb9c89e1599b2f13d1403820a9e0fb2c1129c1
re PR c++/79267 (internal compiler error with -O3 or -O2 -finline-functions)

PR tree-optimization/79267
* value-prof.c (gimple_ic): Only drop lhs for noreturn calls
if should_remove_lhs_p is true.

* g++.dg/opt/pr79267.C: New test.

From-SVN: r245053
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr79267.C [new file with mode: 0644]
gcc/value-prof.c