This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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:

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]