From: Jan Hubicka Date: Wed, 5 May 2004 20:55:02 +0000 (+0200) Subject: re PR rtl-optimization/14980 ([unit-at-a-time] complex_io.cc:69: error: Inlined_to... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59af0b6aa3a9a1ed4c9d075d3ae747f804733159;p=gcc.git re PR rtl-optimization/14980 ([unit-at-a-time] complex_io.cc:69: error: Inlined_to pointer is set but no predecesors found--causes ICE) PR opt/14980 * cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with inline clones. From-SVN: r81540 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 975882bfe54..44e58d7c240 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-05-05 Jan Hubicka + + PR opt/14980 + * cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with + inline clones. + 2004-05-05 H.J. Lu PR target/15290 diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 156c924bca1..e9402dbfb6e 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -889,7 +889,8 @@ cgraph_remove_unreachable_nodes (void) abort (); #endif for (node = cgraph_nodes; node; node = node->next) - if (node->needed && (!DECL_EXTERNAL (node->decl) || !node->analyzed)) + if (node->needed && !node->global.inlined_to + && (!DECL_EXTERNAL (node->decl) || !node->analyzed)) { node->aux = first; first = node; @@ -932,6 +933,7 @@ cgraph_remove_unreachable_nodes (void) int local_insns; tree decl = node->decl; + node->global.inlined_to = NULL; if (DECL_STRUCT_FUNCTION (decl)) local_insns = node->local.self_insns; else