From: Richard Kenner Date: Thu, 2 Dec 1993 12:00:18 +0000 (-0500) Subject: (secondary_reload_class): Kernel regs are in same class as user regs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00f52f2bcf37d4c6ba9c2f08d3bc64b75576db5c;p=gcc.git (secondary_reload_class): Kernel regs are in same class as user regs. From-SVN: r6176 --- diff --git a/gcc/config/a29k/a29k.c b/gcc/config/a29k/a29k.c index 631176134af..350b10bbe23 100644 --- a/gcc/config/a29k/a29k.c +++ b/gcc/config/a29k/a29k.c @@ -742,7 +742,10 @@ secondary_reload_class (class, mode, in) /* Otherwise, we can place anything into GENERAL_REGS and can put GENERAL_REGS into anything. */ - if (class == GENERAL_REGS || (regno != -1 && regno < R_BP)) + if (class == GENERAL_REGS + || (regno != -1 + && (regno < R_BP + || (regno >= R_KR (0) && regno <= R_KR (31))))) return NO_REGS; /* We can place 16-bit constants into a special register. */