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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Aldy Hernandez <al...@gcc.gnu.org>:

https://gcc.gnu.org/g:46f4a397ab0907ce5786e1f0b92030a73e8b89ef

commit r11-3836-g46f4a397ab0907ce5786e1f0b92030a73e8b89ef
Author: Andrew MacLeod <amacl...@redhat.com>
Date:   Mon Oct 12 13:00:12 2020 -0400

    Do not ignore failures from gimple_range_calc_op2.

    We were ignoring the return value if op2 returned false and getting garbage
ranges propagated.

    gcc/ChangeLog:

            PR tree-optimization/97381
            * gimple-range-gori.cc (gori_compute::compute_operand2_range): If a
range cannot be
            calculated through operand 2, return false.

    gcc/testsuite/ChangeLog:

            * gcc.dg/pr97381.c: New test.

Reply via email to