This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, committed]: Fix PR 46675, Profiledbootstrap failed
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Zdenek Dvorak <rakdver at kam dot mff dot cuni dot cz>, Richard Guenther <rguenther at suse dot de>, "H.J. Lu" <hjl dot tools at gmail dot com>, Andrew Haley <aph at redhat dot com>
- Date: Mon, 29 Nov 2010 18:17:29 +0100
- Subject: [PATCH, committed]: Fix PR 46675, Profiledbootstrap failed
Hello!
The fix is by Zdenek:
Fixes overflow in # of iterations analysis -- when splitting var - INT_MIN to a
sum of a variable part and a constant offset, we performed the negation of the
offset in the original type (which overflows for INT_MIN) instead of in full
precision.
2010-11-29 Zdenek Dvorak <rakdver@kam.uniff.cz>
PR tree-optimization/46675
* tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
in offset calculation.
testsuite/ChangeLog:
2010-11-29 Richard Guenther <rguenther@suse.de>
Zdenek Dvorak <rakdver@kam.uniff.cz>
PR tree-optimization/46675
* gcc.dg/pr46675.c: New test.
Patch was tested on x86_64-pc-linux-gnu {,-m32} with a profiled
bootstrap of all default languages.
The patch was approved by Richi in the PR as obvious and was committed
to SVN mainline.
BTW: H.J. has set a profiledbootstrap tester on gnu-16.sc... host, see
current results at [1].
[1] http://gcc.gnu.org/ml/gcc-testresults/2010-11/msg02438.html
Uros.