aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2020-09-01 16:02:19 -0600
committerMartin Sebor <msebor@redhat.com>2020-09-01 16:03:25 -0600
commit0c344a649d803a83ed35f629d292b98143935ffa (patch)
tree069c12b4eb9f1263b68f13d0a2027908cb58204f /gcc/config.gcc
parentb1c59b31ef7adc832405209e9e2a77212284abd7 (diff)
downloadgcc-0c344a649d803a83ed35f629d292b98143935ffa.zip
gcc-0c344a649d803a83ed35f629d292b98143935ffa.tar.gz
gcc-0c344a649d803a83ed35f629d292b98143935ffa.tar.bz2
Use the determined lower bound of the range of offsets in a PLUS_EXPR.
gcc/ChangeLog: * builtins.c (compute_objsize): Only replace the upper bound of a POINTER_PLUS offset when it's less than the lower bound. gcc/testsuite/ChangeLog: * gcc.dg/Wstringop-overflow.c: Remove xfails. * gcc.dg/Wstringop-overflow-42.c: New test. * gcc.dg/Wstringop-overread-4.c: New test.
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions