*** empty log message ***
authorRichard Stallman <rms@gnu.org>
Tue, 5 May 1992 07:16:22 +0000 (07:16 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 5 May 1992 07:16:22 +0000 (07:16 +0000)
From-SVN: r898

gcc/config/ns32k/ns32k.h

index e672b9286d9d46de832c281b37886d6854b8e233..07fc88206edbf7436d582675a1d7eff66cf301d4 100644 (file)
@@ -330,7 +330,11 @@ enum reg_class { NO_REGS, GENERAL_REGS, FLOAT_REGS, FRAME_POINTER_REG, STACK_POI
    In general this is just CLASS; but on some machines
    in some cases it is preferable to use a more restrictive class.  */
 
-#define PREFERRED_RELOAD_CLASS(X,CLASS)  (CLASS)
+/* We return GENERAL_REGS instead of GEN_AND_MEM_REGS.
+   The latter offers no real additional possibilities
+   and can cause spurious secondary reloading.  */ 
+#define PREFERRED_RELOAD_CLASS(X,CLASS) \
+ ((CLASS) == GEN_AND_MEM_REGS ? GENERAL_REGS : (CLASS))
 
 /* Return the maximum number of consecutive registers
    needed to represent mode MODE in a register of class CLASS.  */