This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]