From d3b30e42b73d0a369046e53fcdbe69517c0195be Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Thu, 17 Aug 2006 08:48:37 +0000 Subject: re PR rtl-optimization/28489 (ICE in move_insn, at haifa-sched.c:1968) 2006-08-17 Maxim Kuvyrkov PR rtl-optimization/28489 * sched-ebb.c (begin_schedule_ready): Create basic block at the right place. (advance_target_bb): Skip empty blocks. * haifa-sched.c (bb_note): Make global. * sched-int.h (bb_note): Add prototype. 2006-08-17 Maxim Kuvyrkov PR rtl-optimization/28489 * gcc.c-torture/compile/pr28489.c: New test. From-SVN: r116214 --- gcc/haifa-sched.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/haifa-sched.c') diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 3111ee9..78adee5 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -593,7 +593,6 @@ static void free_glat (void); static void sched_remove_insn (rtx); static void clear_priorities (rtx); static void add_jump_dependencies (rtx, rtx); -static rtx bb_note (basic_block); static void calc_priorities (rtx); #ifdef ENABLE_CHECKING static int has_edge_p (VEC(edge,gc) *, int); @@ -4549,7 +4548,7 @@ add_jump_dependencies (rtx insn, rtx jump) } /* Return the NOTE_INSN_BASIC_BLOCK of BB. */ -static rtx +rtx bb_note (basic_block bb) { rtx note; -- cgit v1.1