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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Feb  7 14:29:14 2019
New Revision: 268621

URL: https://gcc.gnu.org/viewcvs?rev=268621&root=gcc&view=rev
Log:
        Backported from mainline
        2019-01-17  Jakub Jelinek  <ja...@redhat.com>

        PR rtl-optimization/88870
        * dce.c (deletable_insn_p): Never delete const/pure calls that can
        throw if we can't alter the cfg or delete dead exceptions.
        (mark_insn): Don't call find_call_stack_args for such calls.

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

Added:
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/pr88870.c
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/dce.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog

Reply via email to