summaryrefslogtreecommitdiff
path: root/gcc/config/xtensa
diff options
context:
space:
mode:
authorbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>2008-08-29 16:39:59 +0000
committerbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>2008-08-29 16:39:59 +0000
commita65f4f8eec224427fa4214b20d57e96c9043ef1f (patch)
treee6d6212e9a4650ac7f52b0c8006b776c5a7d4d72 /gcc/config/xtensa
parent788c583bac02b3050a066910f6cb50eb2a118b48 (diff)
downloadgcc-a65f4f8eec224427fa4214b20d57e96c9043ef1f.tar.gz
* config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
change from 2008-04-03. * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139771 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/xtensa')
-rw-r--r--gcc/config/xtensa/xtensa.c3
-rw-r--r--gcc/config/xtensa/xtensa.h5
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
index 0f6bbb50ed6..f9979e61934 100644
--- a/gcc/config/xtensa/xtensa.c
+++ b/gcc/config/xtensa/xtensa.c
@@ -2852,8 +2852,7 @@ xtensa_secondary_reload_class (enum reg_class rclass,
if (!isoutput)
{
- if ((rclass == FP_REGS || GET_MODE_SIZE (mode) < UNITS_PER_WORD)
- && constantpool_mem_p (x))
+ if (rclass == FP_REGS && constantpool_mem_p (x))
return RL_REGS;
}
diff --git a/gcc/config/xtensa/xtensa.h b/gcc/config/xtensa/xtensa.h
index 920f9d2ef18..1c23b8d568c 100644
--- a/gcc/config/xtensa/xtensa.h
+++ b/gcc/config/xtensa/xtensa.h
@@ -479,6 +479,11 @@ enum reg_class
{ 0xffffffff, 0x0000000f } /* all registers */ \
}
+#define IRA_COVER_CLASSES \
+{ \
+ BR_REGS, FP_REGS, ACC_REG, AR_REGS, LIM_REG_CLASSES \
+}
+
/* A C expression whose value is a register class containing hard
register REGNO. In general there is more that one such class;
choose a class which is "minimal", meaning that no smaller class