PR middle-end/92026 - gcc.dg/Wstringop-overflow-18.c FAIL
authorMartin Sebor <msebor@redhat.com>
Tue, 8 Oct 2019 19:48:27 +0000 (19:48 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 8 Oct 2019 19:48:27 +0000 (13:48 -0600)
commit7c3ed632601bf485335a7fe00d1db34b23ebacd2
treefcb0679a35fe62400fe8291b8fae30c2ca980686
parente86fc0d7a8df5799c195cd5ff0486e0bdbe6c661
PR middle-end/92026 - gcc.dg/Wstringop-overflow-18.c FAIL

PR middle-end/92026 - gcc.dg/Wstringop-overflow-18.c FAIL
PR middle-end/92014 - bogus warning: writing 8 bytes into a region of size 1 in timezone/zic.c

gcc/ChangeLog:
* tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
again once nbytes has been set.  Set the access size when not yet set.

gcc/testsuite/ChangeLog:

PR middle-end/92014
* gcc.dg/Wstringop-overflow-19.c: New test.

From-SVN: r276711
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wstringop-overflow-19.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c