]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
xtensa.c (xtensa_secondary_reload_class): Revert change from 2008-04-03.
authorBob Wilson <bob.wilson@acm.org>
Fri, 29 Aug 2008 16:39:59 +0000 (16:39 +0000)
committerBob Wilson <bwilson@gcc.gnu.org>
Fri, 29 Aug 2008 16:39:59 +0000 (16:39 +0000)
* config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
change from 2008-04-03.
* config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.

From-SVN: r139771

gcc/ChangeLog
gcc/config/xtensa/xtensa.c
gcc/config/xtensa/xtensa.h

index ba745d888c2e8d0bbbc1fbcfbf3d884c889de1ae..86f729cd3b01a7b353c941125f3226ca2e1f02d3 100644 (file)
@@ -1,3 +1,9 @@
+2008-08-29  Bob Wilson  <bob.wilson@acm.org>
+
+       * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
+       change from 2008-04-03.
+       * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
+
 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR rtl-opt/37251
index 0f6bbb50ed6df2cd28f55557ddeb7452c96fc2c4..f9979e619348fb4f844659038713cffd02278cee 100644 (file)
@@ -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;
     }
 
index 920f9d2ef18dc8014ad90eed5c1bd7893dc22b38..1c23b8d568c26aae67535f8b7aba75a2efb511a4 100644 (file)
@@ -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