This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18527] cannot determine number of iterations for loops with <=
- From: "rakdver at atrey dot karlin dot mff dot cuni dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jan 2006 20:55:26 -0000
- Subject: [Bug tree-optimization/18527] cannot determine number of iterations for loops with <=
- References: <bug-18527-9531@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from rakdver at atrey dot karlin dot mff dot cuni dot cz 2006-01-04 20:55 -------
Subject: Re: cannot determine number of iterations for loops with <=
> Toon posted an updated patch here:
> http://gcc.gnu.org/ml/fortran/2006-01/msg00048.html
>
> (Toon, I had Andrew add you to the CC list, because somehow I couldn't, and I
> think dicussion of the patch should either take place here or on gcc-patches,
> but on the Fortran list you probably won't get far.)
there is a small mistake in my patch (and in the updated one as well) --
folded_casts is not used, the last chunk in simple_iv should be
+ if (no_overflow)
+ *no_overflow = (!folded_casts && !flag_wrapv && !TYPE_UNSIGNED (type));
I will test and submit the corrected patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18527