[patch] Avoid division by zero in data-refs dependence analysis

Ira Rosen IRAR@il.ibm.com
Thu Mar 22 15:04:00 GMT 2007


An attempt to divide by zero was made (causing ICE on the attached test
case) for evolution functions with zero step.

Thanks to Revital for the test case.

Bootstrapped and tested on ppc-linux.
O.K. for mainline?

Thanks,
Ira

ChangeLog entry:

      * tree-data-ref.c (chrec_steps_divide_constant_p): Avoid division
      by 0.

(See attached file: patch.txt)


:ADDPATCH SSA:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070322/5dc78484/attachment.txt>


More information about the Gcc-patches mailing list