diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-03-27 11:33:17 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-03-27 10:33:17 +0000 |
commit | 88e7d85fba68f0f9f3d87f14899dbcb6018a2844 (patch) | |
tree | c1ce668914cf00b1275c64a65327a0726e2009a2 /gcc/cgraph.c | |
parent | 79d64904522c8ba0b1f14f54fa2db8f2a38a441f (diff) | |
download | gcc-88e7d85fba68f0f9f3d87f14899dbcb6018a2844.zip gcc-88e7d85fba68f0f9f3d87f14899dbcb6018a2844.tar.gz gcc-88e7d85fba68f0f9f3d87f14899dbcb6018a2844.tar.bz2 |
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
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 0d2b826..96f5f40 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -1516,7 +1516,7 @@ cgraph_update_edges_for_call_stmt_node (cgraph_node *node, if (e) { /* Keep calls marked as dead dead. */ - if (e->callee + if (new_call && e->callee && DECL_BUILT_IN_CLASS (e->callee->decl) == BUILT_IN_NORMAL && DECL_FUNCTION_CODE (e->callee->decl) == BUILT_IN_UNREACHABLE) { |