From c0a5a33abd00f4d14fa0a9b055b681723967de3c Mon Sep 17 00:00:00 2001
From: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue, 29 Jan 2002 22:05:03 +0000
Subject: [PATCH] 	* config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle
 LEGACY_REGS 	and INDEX_REGS the same as GENERAL_REGS. 
 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49327 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog          | 6 ++++++
 gcc/config/i386/i386.h | 6 ++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4f292420f3d7..fc8ce5c39ccd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2002-01-29  Jakub Jelinek  <jakub@redhat.com>
+
+	* config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
+	and INDEX_REGS the same as GENERAL_REGS.
+	(SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
+
 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
 
         * tree.c (build_nonstandard_integer_type): Correct prototype.
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index 25705e6420ce..58f65c11908f 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -1456,7 +1456,8 @@ enum reg_class
 
 #define LIMIT_RELOAD_CLASS(MODE, CLASS) 			\
   ((MODE) == QImode && !TARGET_64BIT				\
-   && ((CLASS) == ALL_REGS || (CLASS) == GENERAL_REGS) 		\
+   && ((CLASS) == ALL_REGS || (CLASS) == GENERAL_REGS		\
+       || (CLASS) == LEGACY_REGS || (CLASS) == INDEX_REGS)	\
    ? Q_REGS : (CLASS))
 
 /* Given an rtx X being reloaded into a reg required to be
@@ -1485,7 +1486,8 @@ enum reg_class
    pseudo.  */
 
 #define SECONDARY_OUTPUT_RELOAD_CLASS(CLASS, MODE, OUT)			\
-  ((CLASS) == GENERAL_REGS && !TARGET_64BIT && (MODE) == QImode		\
+  (((CLASS) == GENERAL_REGS || (CLASS) == LEGACY_REGS			\
+    || (CLASS) == INDEX_REGS) && !TARGET_64BIT && (MODE) == QImode	\
    ? Q_REGS : NO_REGS)
 
 /* Return the maximum number of consecutive registers
-- 
GitLab