Fix multi-reg inheritance problems (only a fix small additional fix for yesterday...
authorBernd Schmidt <bernds@redhat.co.uk>
Sat, 2 Dec 2000 09:55:48 +0000 (09:55 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Sat, 2 Dec 2000 09:55:48 +0000 (09:55 +0000)
From-SVN: r37946

gcc/ChangeLog
gcc/reload1.c

index 5411cdc0c2b56a972d28b62598bfb955c6a5fc72..ee903e9bae48ff2c7810792355242a6969b7875e 100644 (file)
@@ -1,3 +1,9 @@
+2000-12-02  Bernd Schmidt  <bernds@redhat.co.uk>
+
+       * reload1.c (free_for_value_p): New function, frontend to
+       reload_reg_free_for_value_p.  All callers of the latter now call
+       this function with an additional mode argument.
+
 2000-12-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
 
        * install.texi (Configurations): Remove obsolete documentation for
        (try_combine, can_combine_p, combinable_i3pat): Delete old
        SMALL_REGISTER_CLASSES tests.
 
-       * reload1.c (free_for_value_p): New function, frontend to
-       reload_reg_free_for_value_p.  All callers of the latter now call
-       this function with an additional mode argument.
-
 2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
 
        * config/sh/sh.c (shiftcosts): Don't get INTVAL before testing
index e0fa2b9adc36f09edbcb137f71585d2952023f02..1babaf7a74bddd6de5a793bc4eefd4ee09a32635 100644 (file)
@@ -4905,7 +4905,7 @@ free_for_value_p (regno, mode, opnum, type, value, out, reloadnum,
 {
   int nregs = HARD_REGNO_NREGS (regno, mode);
   while (nregs-- > 0)
-    if (! reload_reg_free_for_value_p (regno, opnum, type, value, out,
+    if (! reload_reg_free_for_value_p (regno + nregs, opnum, type, value, out,
                                       reloadnum, ignore_address_reloads))
       return 0;
   return 1;