re PR rtl-optimization/88870 (ICE: Segmentation fault (in df_worklist_propagate_backw...
authorJakub Jelinek <jakub@redhat.com>
Thu, 17 Jan 2019 08:04:28 +0000 (09:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 17 Jan 2019 08:04:28 +0000 (09:04 +0100)
commit9556b012b73024a95e72d8aa1b434ad50b8df9d3
treebe2f15ccfc2d0ffd4a9a22d8734835dc1686e9b2
parent404fa41fcfba5b0f969e6845f0447a295c73984e
re PR rtl-optimization/88870 (ICE: Segmentation fault (in df_worklist_propagate_backward))

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.

From-SVN: r268008
gcc/ChangeLog
gcc/dce.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr88870.c [new file with mode: 0644]