rs6000.c (secondary_reload_class): For TARGET_ELF make sure that HIGH instructions...
authorDiego Novillo <dnovillo@cygnus.com>
Thu, 7 Oct 1999 06:38:15 +0000 (06:38 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Thu, 7 Oct 1999 06:38:15 +0000 (02:38 -0400)
        * config/rs6000/rs6000.c (secondary_reload_class): For
TARGET_ELF make sure that HIGH instructions are copied
into BASE_REGS.

From-SVN: r29850

ChangeLog
gcc/config/rs6000/rs6000.c

index 1a4b0bf46c0963a3fc6966cd51ccc16db89413ce..3f985c60da2505c662b14cf4371833cf98c48208 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 26ca580ccd33d4386da7c4454cd5a43319a88043..2e961c43ccdb340bd14aa739e2fc7a965a857ee6 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;