diff options
author | Richard Henderson <rth@cygnus.com> | 2000-07-12 10:20:17 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-07-12 10:20:17 -0700 |
commit | 6fe8aebc3fa621f18cdf1692bfec4f7635359545 (patch) | |
tree | a26e9127d7771895bca131268615a5d87f99e095 /gcc/reload.c | |
parent | b9bf5af85379fa84ae7bd7de702d143b770d5986 (diff) | |
download | gcc-6fe8aebc3fa621f18cdf1692bfec4f7635359545.zip gcc-6fe8aebc3fa621f18cdf1692bfec4f7635359545.tar.gz gcc-6fe8aebc3fa621f18cdf1692bfec4f7635359545.tar.bz2 |
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
Diffstat (limited to 'gcc/reload.c')
-rw-r--r-- | gcc/reload.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/reload.c b/gcc/reload.c index 7f5f355..412852e 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -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. */ |