re PR tree-optimization/84383 (ICE in maybe_diag_stxncpy_trunc)
authorJakub Jelinek <jakub@redhat.com>
Thu, 15 Feb 2018 11:18:47 +0000 (12:18 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 15 Feb 2018 11:18:47 +0000 (12:18 +0100)
commit44e60df333a5fa63428a12887d9c8b5471e1a01b
tree3ec7961a4fa2f92e2770e60e2c4424051e745a9b
parent3eb1eecf29e1e28982b297e565ee291be8636532
re PR tree-optimization/84383 (ICE in maybe_diag_stxncpy_trunc)

PR tree-optimization/84383
* tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Don't look at
dstoff nor call operand_equal_p if dstbase is NULL.

* gcc.c-torture/compile/pr84383.c: New test.

From-SVN: r257684
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr84383.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c