re PR middle-end/65595 (Linux kernel build failure: ICE: in as_a, at is-a.h:192)
authorJan Hubicka <hubicka@ucw.cz>
Fri, 27 Mar 2015 10:33:17 +0000 (11:33 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 27 Mar 2015 10:33:17 +0000 (10:33 +0000)
commit88e7d85fba68f0f9f3d87f14899dbcb6018a2844
treec1ce668914cf00b1275c64a65327a0726e2009a2
parent79d64904522c8ba0b1f14f54fa2db8f2a38a441f
re PR middle-end/65595 (Linux kernel build failure: ICE: in as_a, at is-a.h:192)

PR middle-end/65595
* cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
do redirection if the call is not optimized out.

* gcc.c-torture/compile/pr65595.c: New testcase.

From-SVN: r221726
gcc/ChangeLog
gcc/cgraph.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr65595.c [new file with mode: 0644]