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

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Aug 28 00:10:46 2018
New Revision: 263900

URL: https://gcc.gnu.org/viewcvs?rev=263900&root=gcc&view=rev
Log:
PR tree-optimization/87112 - ICE in fold_binary_loc on strnlen of mixed integer
types

gcc/ChangeLog:

        PR tree-optimization/87112
        * builtins.c (expand_builtin_strnlen): Convert c_strlen result to
        the type of the bound argument.

gcc/testsuite/ChangeLog:

        PR tree-optimization/87112
        * gcc.dg/pr87112.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr87112.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to