Patchwork committed: Fix build for targets that have SECONDARY_MEMORY_NEEDED ignoring CLASS* arguments.

login
register
mail settings
Submitter Joern Rennecke
Date Oct. 31, 2012, 2:55 a.m.
Message ID <20121030225557.se9gmnl7fo4kc8wo-nzlynne@webmail.spamcop.net>
Download mbox | patch
Permalink /patch/195717/
State New
Headers show

Comments

Joern Rennecke - Oct. 31, 2012, 2:55 a.m.
Build tested on powerpc64-unknown-linux-gnu X microblaze-elf .
Committed as obvious.
2012-10-31  Joern Rennecke  <joern.rennecke@embecosm.com>

	* lra-constraints.c (choose_split_class): Add ATTRIBUTE_UNUSED to
	hard_reg_class.

Patch

Index: lra-constraints.c
===================================================================
--- lra-constraints.c	(revision 192994)
+++ lra-constraints.c	(working copy)
@@ -3852,7 +3852,8 @@ 
 #else
   int i;
   enum reg_class cl, best_cl = NO_REGS;
-  enum reg_class hard_reg_class = REGNO_REG_CLASS (hard_regno);
+  enum reg_class hard_reg_class ATTRIBUTE_UNUSED
+    = REGNO_REG_CLASS (hard_regno);
 
   if (! SECONDARY_MEMORY_NEEDED (allocno_class, allocno_class, mode)
       && TEST_HARD_REG_BIT (reg_class_contents[allocno_class], hard_regno))