From 1b6c8b1231b2825c1de1d8649d83285f567418f2 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 5 May 1992 07:16:22 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r898 --- gcc/config/ns32k/ns32k.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/config/ns32k/ns32k.h b/gcc/config/ns32k/ns32k.h index e672b9286d9..07fc88206ed 100644 --- a/gcc/config/ns32k/ns32k.h +++ b/gcc/config/ns32k/ns32k.h @@ -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. */ -- 2.30.2