]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Backport a change to the 2.95 branch
authorBernd Schmidt <bernds@redhat.co.uk>
Thu, 30 Nov 2000 12:15:58 +0000 (12:15 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Thu, 30 Nov 2000 12:15:58 +0000 (12:15 +0000)
From-SVN: r37883

gcc/ChangeLog
gcc/reload.c

index e05c3c2e4b70cc6ec6133779b132ab8f3770ebb5..f602db0bdbe6c4180d96357c1aeabd86e441cf0a 100644 (file)
@@ -1,5 +1,9 @@
 2000-11-30  Bernd Schmidt  <bernds@redhat.co.uk>
 
+       2000-07-12  Richard Henderson  <rth@redhat.com>
+       * reload.c (push_secondary_reload): Make sure to add the new
+       reload at the end, after acquiring secondary memory.
+
        2000-09-14  Alexandre Oliva  <aoliva@redhat.com>, Bernd Schmidt  <bernds@redhat.co.uk>
        * reload.c (find_reloads_address_1): Generate reloads for auto_inc
        pseudos that refer to the original pseudos, not only to their
index b22d6dd08ab19fa3ae443b4221c0ef8fc8f02378..7c2c14e65c913166de4c3d8ebc1ab158ed8f2c36 100644 (file)
@@ -591,7 +591,13 @@ push_secondary_reload (in_p, x, opnum, optional, reload_class, reload_mode,
 
       if (in_p && icode == CODE_FOR_nothing
          && SECONDARY_MEMORY_NEEDED (class, reload_class, mode))
-       get_secondary_mem (x, reload_mode, opnum, type);
+       {
+         get_secondary_mem (x, reload_mode, opnum, type);
+
+         /* We may have just added new reloads.  Make sure we add
+            the new reload at the end.  */
+         s_reload = n_reloads;
+       }
 #endif
 
       /* We need to make a new secondary reload for this register class.  */