r275131 - in /branches/gcc-7-branch/gcc: Change...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Fri Aug 30 12:18:00 GMT 2019
Author: jakub
Date: Fri Aug 30 12:18:54 2019
New Revision: 275131
URL: https://gcc.gnu.org/viewcvs?rev=275131&root=gcc&view=rev
Log:
Backported from mainline
2019-03-14 Jakub Jelinek <jakub@redhat.com>
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.
Added:
branches/gcc-7-branch/gcc/testsuite/gcc.c-torture/compile/pr89703-1.c
branches/gcc-7-branch/gcc/testsuite/gcc.c-torture/compile/pr89703-2.c
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/testsuite/ChangeLog
branches/gcc-7-branch/gcc/tree-ssa-strlen.c
More information about the Gcc-cvs
mailing list