* config/rs6000/rs6000.c (secondary_reload_class): For
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Oct 1999 06:38:15 +0000 (06:38 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Oct 1999 06:38:15 +0000 (06:38 +0000)
TARGET_ELF make sure that HIGH instructions are copied
into BASE_REGS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29850 138bc75d-0d04-0410-961f-82ee72b054a4

ChangeLog
gcc/config/rs6000/rs6000.c

index 1a4b0bf..3f985c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct  7 00:36:17 MDT 1999   Diego Novillo <dnovillo@cygnus.com>
+
+       * config/rs6000/rs6000.c (secondary_reload_class): For TARGET_ELF
+       make sure that HIGH instructions are copied into BASE_REGS.
+
 Sun Oct  3 14:20:22 1999  Jeffrey A Law  (law@cygnus.com)
 
        * configure.in (fr30): Fix typo.
index 26ca580..2e961c4 100644 (file)
@@ -2620,6 +2620,7 @@ secondary_reload_class (class, mode, in)
      is needed as an intermediate register.  */
   if (class != BASE_REGS
       && (GET_CODE (in) == SYMBOL_REF
+         || GET_CODE (in) == HIGH
          || GET_CODE (in) == LABEL_REF
          || GET_CODE (in) == CONST))
     return BASE_REGS;