This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/50744] [4.7 Regression] ice in good_cloning_opportunity_p
- 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, 07 Dec 2011 10:30:55 +0000
- Subject: [Bug tree-optimization/50744] [4.7 Regression] ice in good_cloning_opportunity_p
- Auto-submitted: auto-generated
- References: <bug-50744-4@http.gcc.gnu.org/bugzilla/>
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