This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/52430] [4.4 Regression] firefox miscompilation
- From: "jamborm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 29 Feb 2012 16:45:04 +0000
- Subject: [Bug tree-optimization/52430] [4.4 Regression] firefox miscompilation
- Auto-submitted: auto-generated
- References: <bug-52430-4@http.gcc.gnu.org/bugzilla/>
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.