OSDN Git Service

* reload.c (push_secondary_reload): Make sure to add the new
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Jul 2000 17:20:17 +0000 (17:20 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Jul 2000 17:20:17 +0000 (17:20 +0000)
        reload at the end, after acquiring secondary memory.

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

gcc/ChangeLog
gcc/reload.c

index ed25fd3..8b962c7 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-12  Richard Henderson  <rth@cygnus.com>
+
+       * reload.c (push_secondary_reload): Make sure to add the new
+       reload at the end, after acquiring secondary memory.
+
 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
index 7f5f355..412852e 100644 (file)
@@ -524,7 +524,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.  */