diff options
author | David Malcolm <dmalcolm@redhat.com> | 2020-08-17 21:12:35 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2020-08-18 21:20:18 -0400 |
commit | 400abebf48a90d0797718ab7c3864de331e85b70 (patch) | |
tree | 3eb261b4c6667c41868f290af8477b8d30097419 /gcc/tree-ssa-loop-manip.c | |
parent | 5c265693bfa8e5f205e81c0452d54800334c32a9 (diff) | |
download | gcc-400abebf48a90d0797718ab7c3864de331e85b70.zip gcc-400abebf48a90d0797718ab7c3864de331e85b70.tar.gz gcc-400abebf48a90d0797718ab7c3864de331e85b70.tar.bz2 |
analyzer: fix ICE with negative bit offsets [PR96648]
PR analyzer/96648 reports an ICE within get_field_at_bit_offset due
to a negative bit offset, arising due to pointer arithmetic.
This patch replaces an assertion with handling for this case, fixing the
ICE.
gcc/analyzer/ChangeLog:
PR analyzer/96648
* region.cc (get_field_at_bit_offset): Gracefully handle negative
values for bit_offset.
gcc/testsuite/ChangeLog:
PR analyzer/96648
* gcc.dg/analyzer/pr96648.c: New test.
Diffstat (limited to 'gcc/tree-ssa-loop-manip.c')
0 files changed, 0 insertions, 0 deletions