[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug tree-optimization/26763] [4.1 Regression] wrong final value of induction variable calculated




------- Comment #8 from rakdver at gcc dot gnu dot org  2006-04-03 16:52 -------
(In reply to comment #6)
> 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.

The patch seems a bit too conservative to me; perhaps just always comparing the
offsets as signed could work?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26763

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



Reply to: