[Bug middle-end/71387] [6/7 Regression] ICE in emit_move_insn, at expr.c:3418 with -Og
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 3 08:03:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71387
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jun 3 08:03:11 2016
New Revision: 237053
URL: https://gcc.gnu.org/viewcvs?rev=237053&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/opt/pr71387.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraph.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list