re PR rtl-optimization/57662 (ICE: SIGSEGV in code_motion_process_successors with...
authorAndrey Belevantsev <abel@ispras.ru>
Wed, 14 Aug 2013 14:31:26 +0000 (18:31 +0400)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Wed, 14 Aug 2013 14:31:26 +0000 (18:31 +0400)
commite839e2a9311ecfa2cfd8e9bc0b6eeba65da48418
tree6797bfb33445b2da9e17d960737957cc6f4fdc6f
parentaec9ba36b142026cae3b194840c41d9ba7b5c8f4
re PR rtl-optimization/57662 (ICE: SIGSEGV in code_motion_process_successors with -fschedule-insns2 -fselective-scheduling2)

PR rtl-optimization/57662

gcc/
* sel-sched.c (code_motion_process_successors): When the current insn
is removed after the recursive traversal, break from the loop.
Add comments and debug printouts.

testsuite/

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

From-SVN: r201728
gcc/ChangeLog
gcc/sel-sched.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr57662.c [new file with mode: 0644]