From 59af0b6aa3a9a1ed4c9d075d3ae747f804733159 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 5 May 2004 22:55:02 +0200 Subject: 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 --- gcc/cgraphunit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/cgraphunit.c') diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 156c924..e9402db 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 -- cgit v1.1