summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2012-02-16 23:16:28 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2012-02-16 23:16:28 +0000
commitc7e75c4532c772a1370350cba4a4a41dd8c64ca1 (patch)
tree652313a32a88af764f40784d92198381a424ced2
parent3d2901ee852530ea81564dd60358253a05675806 (diff)
downloadgcc-c7e75c4532c772a1370350cba4a4a41dd8c64ca1.tar.gz
* system.h: Poison SMALL_REGISTER_CLASSES
* config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook. * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184319 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/rl78/rl78.h2
-rw-r--r--gcc/config/rx/rx.h1
-rw-r--r--gcc/system.h2
4 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c4790d28186..c58a6b93f2e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
+
+ * system.h: Poison SMALL_REGISTER_CLASSES
+ * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
+ * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
+
2012-02-16 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/52285
diff --git a/gcc/config/rl78/rl78.h b/gcc/config/rl78/rl78.h
index 5980c418843..dba4b1cb2fb 100644
--- a/gcc/config/rl78/rl78.h
+++ b/gcc/config/rl78/rl78.h
@@ -258,7 +258,7 @@ enum reg_class
{ 0xff7fffff, 0x0000001f } /* All registers. */ \
}
-#define SMALL_REGISTER_CLASSES 1
+#define TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P hook_bool_mode_true
#define N_REG_CLASSES (int) LIM_REG_CLASSES
#define CLASS_MAX_NREGS(CLASS, MODE) ((GET_MODE_SIZE (MODE) \
+ UNITS_PER_WORD - 1) \
diff --git a/gcc/config/rx/rx.h b/gcc/config/rx/rx.h
index 10b16bda261..80c5b498f05 100644
--- a/gcc/config/rx/rx.h
+++ b/gcc/config/rx/rx.h
@@ -185,7 +185,6 @@ enum reg_class
{ 0x0000ffff } /* All registers. */ \
}
-#define SMALL_REGISTER_CLASSES 0
#define N_REG_CLASSES (int) LIM_REG_CLASSES
#define CLASS_MAX_NREGS(CLASS, MODE) ((GET_MODE_SIZE (MODE) \
+ UNITS_PER_WORD - 1) \
diff --git a/gcc/system.h b/gcc/system.h
index 51520e19f51..6575acd308b 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -807,7 +807,7 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP JUMP_ALIGN_MAX_SKIP \
CAN_DEBUG_WITHOUT_FP UNLIKELY_EXECUTED_TEXT_SECTION_NAME \
HOT_TEXT_SECTION_NAME LEGITIMATE_CONSTANT_P ALWAYS_STRIP_DOTDOT \
- OUTPUT_ADDR_CONST_EXTRA
+ OUTPUT_ADDR_CONST_EXTRA SMALL_REGISTER_CLASSES
/* Target macros only used for code built for the target, that have
moved to libgcc-tm.h or have never been present elsewhere. */