The order of calls to sched_rgn_init and sched_init differs between
sched-rgn and sel-sched. This caused a scheduler patch I was working on
to segfault once sel-sched was enabled. The following patch swaps the
two function calls.
Bootstrapped & tested on i686-linux. Ok?
* sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
--- gcc/sel-sched.c (revision 364953)
+++ gcc/sel-sched.c (working copy)
@@ -7616,8 +7616,8 @@ sel_global_init (void)
- sched_rgn_init (false);
+ sched_rgn_init (false);
/* Reset AFTER_RECOVERY if it has been set by the 1st scheduler pass. */