]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Apr 2010 14:41:50 +0000 (14:41 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Apr 2010 14:41:50 +0000 (14:41 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158610 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-prop.c

index 13ac23956aaaf5348cc9db724aa17b5e73c46d9f..277e34873aa3d5535d97c2ef39b2505ac46783d2 100644 (file)
@@ -1,3 +1,7 @@
+2010-04-21  Jan Hubicka  <jh@suse.cz>
+
+       * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
+
 2010-04-21  Jan Hubicka  <jh@suse.cz>
 
        * varpool.c (decide_is_variable_needed): Variable is always needed
index ec9f63d89a7b4abc9077759b8eefabcf39047c14..af00175124d0e5b835a11c13b95358d7b885b122 100644 (file)
@@ -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));
 }