This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/86114] [8/9 Regression] ICE in gimple_fold_builtin_strlen with an invalid call to strnlen


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

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Wed Jun 13 20:39:50 2018
New Revision: 261569

URL: https://gcc.gnu.org/viewcvs?rev=261569&root=gcc&view=rev
Log:
PR tree-optimization/86114 - ICE in gimple_fold_builtin_strlen with an invalid
call to strnlen

gcc/testsuite/ChangeLog:

        PR tree-optimization/86114
        * gcc.dg/pr86114.c: New test.

gcc/ChangeLog:

        PR tree-optimization/86114
        * gimple-fold.c (gimple_fold_builtin_strlen): Only handle LHS
        of integer types.
        * tree-ssa-strlen.c (maybe_set_strlen_range): Same.


Added:
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/pr86114.c
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/gimple-fold.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
    branches/gcc-8-branch/gcc/tree-ssa-strlen.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]