re PR tree-optimization/89703 (ICE in compare_values_warnv, at tree-vrp.c:997)
authorJakub Jelinek <jakub@redhat.com>
Thu, 14 Mar 2019 08:56:47 +0000 (09:56 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 14 Mar 2019 08:56:47 +0000 (09:56 +0100)
commitf54e63dfa34c4c9922a4cb35d2f8c28c92135b8c
treedcc71073887e0245bfb6407a7399670aa794b8dc
parentfb055f4b745b1b56d84ad920508ebed2d22d3616
re PR tree-optimization/89703 (ICE in compare_values_warnv, at tree-vrp.c:997)

PR tree-optimization/89703
* tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
aren't compatible also with builtin_decl_explicit.  Check pure
or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
and BUILT_IN_STPNCPY{,_CHK}.

* gcc.c-torture/compile/pr89703-1.c: New test.
* gcc.c-torture/compile/pr89703-2.c: New test.

From-SVN: r269674
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr89703-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr89703-2.c [new file with mode: 0644]
gcc/tree-ssa-strlen.c