[Bug tree-optimization/97462] ICE in op1_range, at range-op.cc:1580 (-Os and above)

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 16 19:05:30 GMT 2020


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

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

https://gcc.gnu.org/g:4a135bd987e7bff6d3b94efa085e0c246348b486

commit r11-4016-g4a135bd987e7bff6d3b94efa085e0c246348b486
Author: Andrew MacLeod <amacleod@redhat.com>
Date:   Fri Oct 16 15:02:42 2020 -0400

    Don't assert on a negative shift.

    Don't assert, simply Return false for negative shifts as we can't tell
    anything about the operand.

            PR tree-optimization/97462
            gcc/
            * range-op.cc (operator_lshift::op1_range): Don't trap on negative
            shifts.
            gcc/testsuite/
            * gcc.dg/pr97462.c: New file.


More information about the Gcc-bugs mailing list