https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105969

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:edb9330c29fe8a0a0b76df6fafd6a223a4d0e41f

commit r13-1105-gedb9330c29fe8a0a0b76df6fafd6a223a4d0e41f
Author: Richard Biener <rguent...@suse.de>
Date:   Wed Jun 15 10:54:48 2022 +0200

    tree-optimization/105969 - FPE with array diagnostics

    For a [0][0] array we have to be careful when dividing by the element
    size which is zero for the outermost dimension.  Luckily the division
    is only for an overflow check which is pointless for array size zero.

    2022-06-15  Richard Biener  <rguent...@suse.de>

            PR tree-optimization/105969
            * gimple-ssa-sprintf.cc (get_origin_and_offset_r): Avoid division
            by zero in overflow check.

            * gcc.dg/pr105969.c: New testcase.

Reply via email to