diff options
author | Martin Sebor <msebor@redhat.com> | 2021-09-17 10:36:54 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2021-09-17 10:36:54 -0600 |
commit | 31e924c52f430d81f030a2fa9f60b73a5a0d2126 (patch) | |
tree | be076ca2c9b45615a2ae1f6a9faf17165e4b23f8 /gcc/config.gcc | |
parent | 47e5052b5e15b3018eb56d353cb6330cd2d614a9 (diff) | |
download | gcc-31e924c52f430d81f030a2fa9f60b73a5a0d2126.zip gcc-31e924c52f430d81f030a2fa9f60b73a5a0d2126.tar.gz gcc-31e924c52f430d81f030a2fa9f60b73a5a0d2126.tar.bz2 |
Better handle MIN/MAX_EXPR of unrelated objects [PR102200].
Resolves:
PR middle-end/102200 - ICE on a min of a decl and pointer in a loop
gcc/ChangeLog:
PR middle-end/102200
* pointer-query.cc (access_ref::inform_access): Handle MIN/MAX_EXPR.
(handle_min_max_size): Change argument. Store original SSA_NAME for
operands to potentially distinct (sub)objects.
(compute_objsize_r): Adjust call to the above.
gcc/testsuite/ChangeLog:
PR middle-end/102200
* gcc.dg/Wstringop-overflow-62.c: Adjust text of an expected note.
* gcc.dg/Warray-bounds-89.c: New test.
* gcc.dg/Wstringop-overflow-74.c: New test.
* gcc.dg/Wstringop-overflow-75.c: New test.
* gcc.dg/Wstringop-overflow-76.c: New test.
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions