reload.c (push_secondary_reload): Make sure to add the new reload at the end, after acquiring secondary memory.

* reload.c (push_secondary_reload): Make sure to add the new
        reload at the end, after acquiring secondary memory.

From-SVN: r34990
This commit is contained in:
Richard Henderson 2000-07-12 10:20:17 -07:00 committed by Richard Henderson
parent b9bf5af853
commit 6fe8aebc3f
2 changed files with 12 additions and 1 deletions

View 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.

View 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. */