re PR middle-end/77259 (ICE in emit_move_insn since r232167)
authorJakub Jelinek <jakub@redhat.com>
Wed, 17 Aug 2016 13:56:30 +0000 (15:56 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 17 Aug 2016 13:56:30 +0000 (15:56 +0200)
commit458a1cd089646f1308c6c19573d095852f10d91d
tree1eeb4e157a1fda36611f079637227095e54c6a8c
parent37144e84aaacf4b5fe10692b9c7c690fb47df224
re PR middle-end/77259 (ICE in emit_move_insn since r232167)

PR middle-end/77259
* tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
turning a call into __builtin_unreachable-like noreturn call, adjust
gimple_call_set_fntype.
* tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
gimple_call_fntype has void return type.

* g++.dg/ipa/devirt-52.C: New test.

From-SVN: r239537
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/devirt-52.C [new file with mode: 0644]
gcc/tree-cfgcleanup.c
gcc/tree-ssa-pre.c