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

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

https://gcc.gnu.org/g:2ac7b19f1e9219f46ccf55f25d8acb3e02e9a2d4

commit r12-7184-g2ac7b19f1e9219f46ccf55f25d8acb3e02e9a2d4
Author: David Malcolm <dmalc...@redhat.com>
Date:   Wed Feb 9 19:06:15 2022 -0500

    analyzer: handle more casts of string literals [PR98797]

    gcc/analyzer/ChangeLog:
            PR analyzer/98797
            * region-model-manager.cc
            (region_model_manager::maybe_fold_sub_svalue): Generalize getting
            individual chars of a STRING_CST from element_region to any
            subregion which is a concrete access of a single byte from its
            parent region.
            * region.cc (region::get_relative_concrete_byte_range): New.
            * region.h (region::get_relative_concrete_byte_range): New decl.

    gcc/testsuite/ChangeLog:
            PR analyzer/98797
            * gcc.dg/analyzer/casts-1.c: Mark xfails as fixed; add further
            test coverage for casts of string literals.

    Signed-off-by: David Malcolm <dmalc...@redhat.com>
  • [Bug analyzer/98797] S... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to