[patch] for PR 17016
Jeffrey A Law
law@redhat.com
Tue Aug 24 19:50:00 GMT 2004
On Mon, 2004-08-23 at 01:36, Zdenek Dvorak wrote:
> Hello,
>
> the function to determine # of iterations of a loop assumes that
> the arguments it works with have either INTEGER_TYPE or POINTER_TYPE.
> However it happened to be called also for REFERENCE_TYPEs, which
> caused this ice. The patch fixes it by making it work also with
> REFERENCE_TYPEs.
>
> Bootstrapped & regtested on i686, commited to lno-branch, needed
> also in mainline.
>
> Zdenek
>
> PR tree-optimization/17016
> * tree-ssa-loop-niter.c (number_of_iterations_cond,
> number_of_iterations_exit): Use POINTER_TYPE_P instead
> of testing for POINTER_TYPE.
The updated patch (which changed an instance of POINTER_TYPE_P to
!POINTER_TYPE_P) is OK once it's passed the bootstrap and regression
test.
Thanks,
Jeff
More information about the Gcc-patches
mailing list