This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix bootstrap failure in sel-sched.c on MIPS
- From: Adam Nemet <anemet at caviumnetworks dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 02 Sep 2008 14:51:00 -0700
- Subject: [committed] Fix bootstrap failure in sel-sched.c on MIPS
HARD_REGNO_RENAME_OK is not defined for MIPS so sel_hard_regno_rename_ok
does not use its arguments causing a warning.
I added ATTRIBUTE_UNUSED. Checked it in after making sure that
bootstrapping had reached stage 3 with the change. It's r139918.
Adam
* sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
Index: sel-sched.c
===================================================================
--- sel-sched.c (revision 139905)
+++ sel-sched.c (working copy)
@@ -1099,7 +1099,7 @@ init_hard_regno_rename (int regno)
/* A wrapper around HARD_REGNO_RENAME_OK that will look into the hard regs
data first. */
static inline bool
-sel_hard_regno_rename_ok (int from, int to)
+sel_hard_regno_rename_ok (int from ATTRIBUTE_UNUSED, int to ATTRIBUTE_UNUSED)
{
#ifdef HARD_REGNO_RENAME_OK
/* Check whether this is all calculated. */