https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89703

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
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  <ja...@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

Reply via email to