[Bug middle-end/87099] [8/9 Regression] internal compiler error: segmentation fault

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 28 11:13:00 GMT 2018


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Aug 28 11:13:04 2018
New Revision: 263915

URL: https://gcc.gnu.org/viewcvs?rev=263915&root=gcc&view=rev
Log:
        PR middle-end/87099
        * calls.c (maybe_warn_nonstring_arg): Punt early if
        warn_stringop_overflow is zero.  Don't call get_range_strlen
        on 3rd argument, keep iterating until lenrng[1] is INTEGER_CST.
        Swap comparison operands to have constants on rhs.  Only use
        lenrng[1] if non-NULL and INTEGER_CST.  Don't uselessly
        increment lenrng[0].

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

Added:
    trunk/gcc/testsuite/gcc.dg/pr87099.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/calls.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list