From: hubicka Date: Wed, 21 Apr 2010 14:41:50 +0000 (+0000) Subject: * ipa-prop.c (ipa_edge_removal_hook): Check for bounds. X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=f716d65e319858fe153b1773bb28ad1cb3853db3 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158610 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 13ac23956aa..277e34873aa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2010-04-21 Jan Hubicka + * ipa-prop.c (ipa_edge_removal_hook): Check for bounds. + +2010-04-21 Jan Hubicka + * varpool.c (decide_is_variable_needed): Variable is always needed during ltrans. diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index ec9f63d89a7..af00175124d 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -1260,6 +1260,10 @@ ipa_edge_removal_hook (struct cgraph_edge *cs, void *data ATTRIBUTE_UNUSED) static void ipa_node_removal_hook (struct cgraph_node *node, void *data ATTRIBUTE_UNUSED) { + /* During IPA-CP updating we can be called on not-yet analyze clones. */ + if (VEC_length (ipa_node_params_t, ipa_node_params_vector) + <= (unsigned)node->uid) + return; ipa_free_node_params_substructures (IPA_NODE_REF (node)); }