From patchwork Wed Oct 31 02:55:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: committed: Fix build for targets that have SECONDARY_MEMORY_NEEDED ignoring CLASS* arguments. From: Joern Rennecke X-Patchwork-Id: 195717 Message-Id: <20121030225557.se9gmnl7fo4kc8wo-nzlynne@webmail.spamcop.net> To: gcc-patches@gcc.gnu.org Date: Tue, 30 Oct 2012 22:55:57 -0400 Build tested on powerpc64-unknown-linux-gnu X microblaze-elf . Committed as obvious. 2012-10-31 Joern Rennecke * lra-constraints.c (choose_split_class): Add ATTRIBUTE_UNUSED to hard_reg_class. 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))