http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52430
--- Comment #3 from Martin Jambor <jamborm at gcc dot gnu.org> 2012-02-29 16:45:04 UTC --- Created attachment 26787 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26787 Proposed untested fix n_cloning_candidates is zero because ipcp_initialize_node_lattices thinks that growStorageBy does not need to be preserved because it only checks node->needed, which is false. In 4.5, we use cgraph_only_called_directly_p for this purpose which also tests node->local.externally_visible, which is what the attached patch, currently under bootstrap and testing, does too. With the patch at and -Os, we do not clone calculateNewCapacity and the problem therefore does not occur.