aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/regrename.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7f039b1..3f99dc6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2010-12-08 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/46844
+ * regrename.c (check_new_reg_p): Add ATTRIBUTE_UNUSED to reg
+ parameter.
+
2010-12-08 Richard Earnshaw <rearnsha@arm.com>
PR target/46631
diff --git a/gcc/regrename.c b/gcc/regrename.c
index 48013f3..d4787b2 100644
--- a/gcc/regrename.c
+++ b/gcc/regrename.c
@@ -309,8 +309,8 @@ sort_du_head (struct du_head **head)
registers. */
static bool
-check_new_reg_p (int reg, int new_reg, struct du_head *this_head,
- HARD_REG_SET this_unavailable)
+check_new_reg_p (int reg ATTRIBUTE_UNUSED, int new_reg,
+ struct du_head *this_head, HARD_REG_SET this_unavailable)
{
enum machine_mode mode = GET_MODE (*this_head->first->loc);
int nregs = hard_regno_nregs[new_reg][mode];