re PR middle-end/46844 (regrename.c:312:22: error: unused parameter 'reg')

PR middle-end/46844
	* regrename.c (check_new_reg_p): Add ATTRIBUTE_UNUSED to reg
	parameter.

From-SVN: r167596
This commit is contained in:
Jakub Jelinek 2010-12-08 17:43:14 +01:00 committed by Jakub Jelinek
parent c994a0ce08
commit 6a68a5c397
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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];