aboutsummaryrefslogtreecommitdiff
path: root/gcc/ira.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@gcc.gnu.org>2012-02-21 23:27:59 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2012-02-21 23:27:59 +0000
commit2805e6c016d2e3ede3a49053b433e633ad6cee92 (patch)
treea103fadcfc49d66754e25dfd04b279ded0395a57 /gcc/ira.c
parent1889b25304ffe6cde5a6ddaaa43a7e7756b2ade0 (diff)
downloadgcc-2805e6c016d2e3ede3a49053b433e633ad6cee92.zip
gcc-2805e6c016d2e3ede3a49053b433e633ad6cee92.tar.gz
gcc-2805e6c016d2e3ede3a49053b433e633ad6cee92.tar.bz2
ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not WORDS_BIG_ENDIAN.
* ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not WORDS_BIG_ENDIAN. * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p, assign_hard_reg): Likewise. From-SVN: r184451
Diffstat (limited to 'gcc/ira.c')
-rw-r--r--gcc/ira.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ira.c b/gcc/ira.c
index 2bdf9fd..41a2928 100644
--- a/gcc/ira.c
+++ b/gcc/ira.c
@@ -1,5 +1,5 @@
/* Integrated Register Allocator (IRA) entry point.
- Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011
+ Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
Contributed by Vladimir Makarov <vmakarov@redhat.com>.
@@ -2089,7 +2089,7 @@ check_allocation (void)
int this_regno = hard_regno;
if (n > 1)
{
- if (WORDS_BIG_ENDIAN)
+ if (REG_WORDS_BIG_ENDIAN)
this_regno += n - i - 1;
else
this_regno += i;
@@ -2108,7 +2108,7 @@ check_allocation (void)
if (ALLOCNO_NUM_OBJECTS (conflict_a) > 1
&& conflict_nregs == ALLOCNO_NUM_OBJECTS (conflict_a))
{
- if (WORDS_BIG_ENDIAN)
+ if (REG_WORDS_BIG_ENDIAN)
conflict_hard_regno += (ALLOCNO_NUM_OBJECTS (conflict_a)
- OBJECT_SUBWORD (conflict_obj) - 1);
else