From ac6067399cdc9569760e681aa421fe37c2576905 Mon Sep 17 00:00:00 2001 From: Graham Stott Date: Sun, 24 Oct 1999 13:20:00 -0700 Subject: alias.c: Include ggc.h. * alias.c: Include ggc.h. (reg_base_value, new_reg_base_value, reg_base_value_size): Make static. (record_set): Verify enough room in reg_base_value. (init_alias_analysis): Allocate reg_base_value with xcalloc. Register it as a GC root. (end_alias_analysis): Free reg_base_value. Remove it as a GC root. * Makefile.in (alias.o): Depend on ggc.h. * unroll.c (unroll_loop): Verify the insn before a barrier is a JUMP_INSN before checking JUMP_LABEL. Co-Authored-By: Richard Henderson From-SVN: r30147 --- gcc/unroll.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/unroll.c') diff --git a/gcc/unroll.c b/gcc/unroll.c index c21638f..d766b74 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -649,6 +649,7 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before, if (unroll_type == UNROLL_NAIVE && GET_CODE (last_loop_insn) == BARRIER + && GET_CODE (PREV_INSN (last_loop_insn)) == JUMP_INSN && start_label != JUMP_LABEL (PREV_INSN (last_loop_insn))) { /* In this case, we must copy the jump and barrier, because they will @@ -1961,7 +1962,8 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration, /* Make split induction variable constants `permanent' since we know there are no backward branches across iteration variable settings which would invalidate this. */ - if (dest_reg_was_split) + if (dest_reg_was_split + && (GET_CODE (pattern) == SET || GET_CODE (pattern) == USE)) { int regno = REGNO (SET_DEST (pattern)); -- cgit v1.1