re PR middle-end/71387 (ICE in emit_move_insn, at expr.c:3418 with -Og)
authorJakub Jelinek <jakub@gcc.gnu.org>
Fri, 3 Jun 2016 08:03:11 +0000 (10:03 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 3 Jun 2016 08:03:11 +0000 (10:03 +0200)
commit1f91747b1d839ae008e445c82946bc64395177cf
tree7835bea89da405838a720a63a6d6f3bab2d74b35
parent47b8392308f4122cb327d351e0f2f34e1b4960bc
re PR middle-end/71387 (ICE in emit_move_insn, at expr.c:3418 with -Og)

PR middle-end/71387
* cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
to noreturn e->callee->decl that has void return type and void
arguments, adjust gimple_call_fntype and remove lhs even if it had
previously addressable type.

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

From-SVN: r237053
gcc/ChangeLog
gcc/cgraph.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr71387.C [new file with mode: 0644]