OSDN Git Service

Fix multi-reg inheritance problems (only a fix small additional fix for yesterday...
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Dec 2000 09:55:48 +0000 (09:55 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Dec 2000 09:55:48 +0000 (09:55 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37946 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/reload1.c

index 5411cdc..ee903e9 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 e0fa2b9..1babaf7 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;