re PR target/9786 (Ice in fixup_abnormal_edges with -fnon-call-exceptions -O2)
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 22 Sep 2003 06:59:51 +0000 (06:59 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 22 Sep 2003 06:59:51 +0000 (06:59 +0000)
commitde582cfbb98b6f155499b2a261a6e336f951b625
tree617ef40caca7262bca17e44852b596b9b9383ef0
parent316b38c83c3e81c1d3c1b68cba91b2b77051f2fd
re PR target/9786 (Ice in fixup_abnormal_edges with -fnon-call-exceptions -O2)

PR target/9786
* reg-stack.c (convert_regs_1): Purge possible dead eh edges
after potential deletion of trapping insn. Avoids later ICE
from call to fixup_abnormal_edges.
(convert_regs_2): Stack the current block successors before
processing this block, that is, before the potential deletion of
dead edges by convert_regs_1, because these edges have been used
to initialize the predecessors count.

From-SVN: r71644
gcc/ChangeLog
gcc/reg-stack.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/reg-stack2.C [new file with mode: 0644]