[Bug ipa/111922] [11/12/13/14 Regression] ICE in cp with -O2 -fno-tree-fre

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 29 16:51:48 GMT 2023


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

--- Comment #10 from GCC 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:634cf26c94de620e66aa124b8ec4d6c2be4b74b2

commit r14-5973-g634cf26c94de620e66aa124b8ec4d6c2be4b74b2
Author: Andrew MacLeod <amacleod@redhat.com>
Date:   Tue Nov 28 13:02:35 2023 -0500

    Check operands before invoking fold_range.

    Call check_operands_p before fold_range to make sure it is a valid
operation.

            PR tree-optimization/111922
            gcc/
            * ipa-cp.cc (ipa_vr_operation_and_type_effects): Check the
            operands are valid before calling fold_range.

            gcc/testsuite/
            * gcc.dg/pr111922.c: New.


More information about the Gcc-bugs mailing list