summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-16 03:24:14 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-16 03:24:14 +0000
commitbd5035563faa351339daa967d9c8578e3cbaa32e (patch)
treebd07dee5a8a0f72d2f06c5e4be1dd7a1d2fbb8c9
parentc10efe6928a5e868da8b224c0391293f08ee38a6 (diff)
downloadgcc-bd5035563faa351339daa967d9c8578e3cbaa32e.tar.gz
* config/cris/cris.c (cris_preferred_reload_class):
Don't return GENERAL_REGS as preferred to MOF_SRP_REGS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189506 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/cris/cris.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4899570261e..a1f11250f07 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2012-07-16 Hans-Peter Nilsson <hp@axis.com>
+ * config/cris/cris.c (cris_preferred_reload_class):
+ Don't return GENERAL_REGS as preferred to MOF_SRP_REGS.
+
* config/cris/cris.c (cris_init_libfuncs): Handle initialization
of library functions for basic atomic compare-and-swap.
* config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c
index 71bb2760034..d5709b34b90 100644
--- a/gcc/config/cris/cris.c
+++ b/gcc/config/cris/cris.c
@@ -1550,6 +1550,7 @@ cris_preferred_reload_class (rtx x ATTRIBUTE_UNUSED, reg_class_t rclass)
{
if (rclass != ACR_REGS
&& rclass != MOF_REGS
+ && rclass != MOF_SRP_REGS
&& rclass != SRP_REGS
&& rclass != CC0_REGS
&& rclass != SPECIAL_REGS)