diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 010bb7bfafc..dd06c64c39b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-09-13 Jan Hubicka + + other/49533 + * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos. + 2011-09-13 Paul Brook * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define. diff --git a/gcc/ipa-inline-transform.c b/gcc/ipa-inline-transform.c index c329beab3b4..600eb0d7eb0 100644 --- a/gcc/ipa-inline-transform.c +++ b/gcc/ipa-inline-transform.c @@ -120,8 +120,8 @@ can_remove_node_now_p (struct cgraph_node *node, struct cgraph_edge *e) return true; for (next = node->same_comdat_group; next != node; next = next->same_comdat_group) - if (node->callers && node->callers != e - && !can_remove_node_now_p_1 (node)) + if ((next->callers && next->callers != e) + || !can_remove_node_now_p_1 (next)) return false; return true; }