This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/26763] [4.1 Regression] wrong final value of induction variable calculated
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2006 21:12:07 -0000
- Subject: [Bug tree-optimization/26763] [4.1 Regression] wrong final value of induction variable calculated
- References: <bug-26763-5724@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from rguenth at gcc dot gnu dot org 2006-03-31 21:12 -------
I believe c-common.c:pointer_int_sum is wrong in relying on pointer overflow
during conversion of the integer offset to an unsigned pointer. I'm sending
a patch that fixes this for comments.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763