[Bug tree-optimization/50744] [4.7 Regression] ice in good_cloning_opportunity_p
jamborm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 7 10:31:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50744
--- Comment #7 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-12-07 10:30:55 UTC ---
Author: jamborm
Date: Wed Dec 7 10:30:49 2011
New Revision: 182076
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182076
Log:
2011-12-07 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/50744
* ipa-cp.c (good_cloning_opportunity_p): Assert size_cost is positive,
compute evaluation in HOST_WIDEST_INT.
(safe_add): New function
(propagate_effects): Use safe_add to accumulate effects.
* testsuite/gcc.dg/ipa/pr50744.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/ipa/pr50744.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ipa-cp.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list