summaryrefslogtreecommitdiff
path: root/gcc/lra-constraints.c
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-31 02:51:26 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-31 02:51:26 +0000
commitd810a474fc3a92c1056240df19215b57a0f7bd2a (patch)
treef6ffcf4b336c632813e9d3e0306193838abd496e /gcc/lra-constraints.c
parent0cd8c08876e2e6ba4918dd115d6fbe34e0b696fd (diff)
downloadgcc-d810a474fc3a92c1056240df19215b57a0f7bd2a.tar.gz
* lra-constraints.c (choose_split_class): Add ATTRIBUTE_UNUSED to
hard_reg_class. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193012 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lra-constraints.c')
-rw-r--r--gcc/lra-constraints.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c
index 2749a13c002..7f19ad1f43c 100644
--- a/gcc/lra-constraints.c
+++ b/gcc/lra-constraints.c
@@ -3852,7 +3852,8 @@ choose_split_class (enum reg_class allocno_class,
#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))