summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-01-14 11:28:01 +0000
committerNick Clifton <nickc@gcc.gnu.org>2009-01-14 11:28:01 +0000
commit9c7c70ee6f669232b6578a53092aaa3e5b0cff7a (patch)
treeded7e5a62bfa60bc31eeebc6767500633672fa62
parentcf0c2a602b4a703140279e456b3a8148e2513ea7 (diff)
downloadgcc-9c7c70ee6f669232b6578a53092aaa3e5b0cff7a.tar.gz
ira-conflicts.c: Include addresses.h for the definition of base_reg_class.
* ira-conflicts.c: Include addresses.h for the definition of base_reg_class. (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS. * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h. From-SVN: r143365
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/ira-conflicts.c5
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0eba871aafe..d6a6ab98e2c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,12 @@
+2009-01-14 Nick Clifton <nickc@redhat.com>
+
+ * ira-conflicts.c: Include addresses.h for the definition of
+ base_reg_class.
+ (ira_build_conflicts): Use base_reg_class instead of
+ BASE_REG_CLASS.
+ * Makefile.in: Add a dependency of ira-conflicts.o on
+ addresses.h.
+
2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
PR target/38811
diff --git a/gcc/ira-conflicts.c b/gcc/ira-conflicts.c
index 244d3bc9b3e..cce2abfd6f6 100644
--- a/gcc/ira-conflicts.c
+++ b/gcc/ira-conflicts.c
@@ -37,6 +37,7 @@ along with GCC; see the file COPYING3. If not see
#include "df.h"
#include "sparseset.h"
#include "ira-int.h"
+#include "addresses.h"
/* This file contains code responsible for allocno conflict creation,
allocno copy creation and allocno info accumulation on upper level
@@ -788,12 +789,12 @@ ira_build_conflicts (void)
ira_free (conflicts);
}
}
- if (! CLASS_LIKELY_SPILLED_P (BASE_REG_CLASS))
+ if (! CLASS_LIKELY_SPILLED_P (base_reg_class (VOIDmode, ADDRESS, SCRATCH)))
CLEAR_HARD_REG_SET (temp_hard_reg_set);
else
{
COPY_HARD_REG_SET (temp_hard_reg_set,
- reg_class_contents[BASE_REG_CLASS]);
+ reg_class_contents[base_reg_class (VOIDmode, ADDRESS, SCRATCH)]);
AND_COMPL_HARD_REG_SET (temp_hard_reg_set, ira_no_alloc_regs);
AND_HARD_REG_SET (temp_hard_reg_set, call_used_reg_set);
}