re PR rtl-optimization/48302 (ICE: SIGSEGV in reposition_prologue_and_epilogue_notes...
authorAlexander Monakov <amonakov@ispras.ru>
Fri, 8 Apr 2011 11:53:25 +0000 (15:53 +0400)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Fri, 8 Apr 2011 11:53:25 +0000 (15:53 +0400)
commitea4d630fef8a13e6fa4a1db99b1d1057a0bd7a72
tree586c2008cb2ba82b8fde6b577fb903af06659acd
parent07643d76c74845e250bdedca6b7148ebccff780b
re PR rtl-optimization/48302 (ICE: SIGSEGV in reposition_prologue_and_epilogue_notes (function.c:5662) with -fcrossjumping -fselective-scheduling2)

PR rtl-optimization/48302
* sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
* sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
it to record added preheader blocks.
* sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
on to sel_add_loop_preheaders.
(sel_region_init): Move call to setup_current_loop_nest after
sel_init_bbs.

testsuite:
* g++.dg/opt/pr48302.C: New.

From-SVN: r172176
gcc/ChangeLog
gcc/sel-sched-ir.c
gcc/sel-sched-ir.h
gcc/sel-sched.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr48302.C [new file with mode: 0644]