aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2020-09-25 17:15:42 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2020-09-25 21:33:02 -0400
commit29f5db8ef81fac4db8e66e5f06fdf1d469e8161c (patch)
tree03b825c6057813e07f1546c7efa8ea3acf6fbaea /libcpp
parentcdd8f031c7edf0fcbf5f20bf5fbd1526a64461d5 (diff)
downloadgcc-29f5db8ef81fac4db8e66e5f06fdf1d469e8161c.zip
gcc-29f5db8ef81fac4db8e66e5f06fdf1d469e8161c.tar.gz
gcc-29f5db8ef81fac4db8e66e5f06fdf1d469e8161c.tar.bz2
analyzer: fix ICEs treeifying offset_region [PR96646, PR96841]
gcc/analyzer/ChangeLog: PR analyzer/96646 PR analyzer/96841 * region-model.cc (region_model::get_representative_path_var): When handling offset_region, wrap the MEM_REF's first argument in an ADDR_EXPR of pointer type, rather than simply using the tree for the parent region. Require the MEM_REF's second argument to be an integer constant. gcc/testsuite/ChangeLog: PR analyzer/96646 PR analyzer/96841 * gcc.dg/analyzer/pr96646.c: New test. * gcc.dg/analyzer/pr96841.c: New test.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions