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

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jun 25 17:35:29 2018
New Revision: 262080

URL: https://gcc.gnu.org/viewcvs?rev=262080&root=gcc&view=rev
Log:
        Backported from mainline
        2018-03-20  Jakub Jelinek  <ja...@redhat.com>

        PR c/84953
        * builtins.c (fold_builtin_strpbrk): For strpbrk(x, "") use type
        instead of TREE_TYPE (s1) for the return value.

        * gcc.dg/pr84953.c: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/pr84953.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/builtins.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

Reply via email to