aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-openmp.cc
diff options
context:
space:
mode:
authorTim Lange <mail@tim-lange.me>2022-09-04 13:07:34 +0200
committerTim Lange <mail@tim-lange.me>2022-09-05 16:22:52 +0200
commit1cc7e31c41a555c53d6f0a88ecd71bbf09b9dd8d (patch)
tree0cf048e1ceb397efba47da1357cf1b62fa3e9f69 /gcc/fortran/trans-openmp.cc
parentae97ba1efcd66d73d3631addf4c09f55e12d34f5 (diff)
downloadgcc-1cc7e31c41a555c53d6f0a88ecd71bbf09b9dd8d.zip
gcc-1cc7e31c41a555c53d6f0a88ecd71bbf09b9dd8d.tar.gz
gcc-1cc7e31c41a555c53d6f0a88ecd71bbf09b9dd8d.tar.bz2
analyzer: return a concrete offset for cast_regions
This patch fixes a bug where maybe_fold_sub_svalue did not fold the access of a single char from a string to a char when the offset was zero because get_relative_concrete_offset did return false for cast_regions. Regrtested on Linux x86_64. 2022-09-04 Tim Lange <mail@tim-lange.me> gcc/analyzer/ChangeLog: * region.cc (cast_region::get_relative_concrete_offset): New overloaded method. * region.h: Add cast_region::get_relative_concrete_offset. gcc/testsuite/ChangeLog: * gcc.dg/analyzer/fold-string-to-char.c: New test.
Diffstat (limited to 'gcc/fortran/trans-openmp.cc')
0 files changed, 0 insertions, 0 deletions