diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/ira-color.c | 2 | ||||
-rw-r--r-- | gcc/ira-lives.c | 3 | ||||
-rw-r--r-- | gcc/loop-unswitch.c | 2 | ||||
-rw-r--r-- | gcc/lower-subreg.c | 4 |
5 files changed, 10 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 02faa00..4b9f723 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2009-11-28 David Binderman <dcb314@hotmail.com> + + * ira-color.c (put_allocno_into_bucket): Remove set but not used + local variable hard_regs_num. + * ira-lives.c (process_single_reg_class_operands): Remove cover_class. + * loop-unswitch.c (unswitch_loop): Remove zero_bitmap. + * lower-subreg.c (decompose_multiword_subregs): Remove next. + 2009-11-27 Martin Jambor <mjambor@suse.cz> PR middle-end/42006 diff --git a/gcc/ira-color.c b/gcc/ira-color.c index 87237b5..4ba7112 100644 --- a/gcc/ira-color.c +++ b/gcc/ira-color.c @@ -1476,11 +1476,9 @@ setup_allocno_left_conflicts_size (ira_allocno_t allocno) static void put_allocno_into_bucket (ira_allocno_t allocno) { - int hard_regs_num; enum reg_class cover_class; cover_class = ALLOCNO_COVER_CLASS (allocno); - hard_regs_num = ira_class_hard_regs_num[cover_class]; if (ALLOCNO_FIRST_COALESCED_ALLOCNO (allocno) != allocno) return; ALLOCNO_IN_GRAPH_P (allocno) = true; diff --git a/gcc/ira-lives.c b/gcc/ira-lives.c index 4302598..7f2769f 100644 --- a/gcc/ira-lives.c +++ b/gcc/ira-lives.c @@ -804,7 +804,7 @@ process_single_reg_class_operands (bool in_p, int freq) { int i, regno, cost; unsigned int px; - enum reg_class cl, cover_class; + enum reg_class cl; rtx operand; ira_allocno_t operand_a, a; @@ -861,7 +861,6 @@ process_single_reg_class_operands (bool in_p, int freq) EXECUTE_IF_SET_IN_SPARSESET (allocnos_live, px) { a = ira_allocnos[px]; - cover_class = ALLOCNO_COVER_CLASS (a); if (a != operand_a) { /* We could increase costs of A instead of making it diff --git a/gcc/loop-unswitch.c b/gcc/loop-unswitch.c index 513fc64..ca9543c 100644 --- a/gcc/loop-unswitch.c +++ b/gcc/loop-unswitch.c @@ -392,7 +392,6 @@ unswitch_loop (struct loop *loop, basic_block unswitch_on, rtx cond, rtx cinsn) edge entry, latch_edge, true_edge, false_edge, e; basic_block switch_bb, unswitch_on_alt; struct loop *nloop; - sbitmap zero_bitmap; int irred_flag, prob; rtx seq; @@ -409,7 +408,6 @@ unswitch_loop (struct loop *loop, basic_block unswitch_on, rtx cond, rtx cinsn) /* Make a copy. */ irred_flag = entry->flags & EDGE_IRREDUCIBLE_LOOP; entry->flags &= ~EDGE_IRREDUCIBLE_LOOP; - zero_bitmap = sbitmap_alloc (2); if (!duplicate_loop_to_header_edge (loop, entry, 1, NULL, NULL, NULL, 0)) return NULL; diff --git a/gcc/lower-subreg.c b/gcc/lower-subreg.c index 590e8e8..3301a9d 100644 --- a/gcc/lower-subreg.c +++ b/gcc/lower-subreg.c @@ -1174,13 +1174,11 @@ decompose_multiword_subregs (void) FOR_BB_INSNS (bb, insn) { - rtx next, pat; + rtx pat; if (!INSN_P (insn)) continue; - next = NEXT_INSN (insn); - pat = PATTERN (insn); if (GET_CODE (pat) == CLOBBER) resolve_clobber (pat, insn); |