summaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-12 17:20:17 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-12 17:20:17 +0000
commitfc2da8108d107c2064857d735794a01f55c545b3 (patch)
treea26e9127d7771895bca131268615a5d87f99e095 /gcc/reload.c
parent1449850fd75a960ddcc6dcd987ebc0294567bb69 (diff)
downloadgcc-fc2da8108d107c2064857d735794a01f55c545b3.tar.gz
* reload.c (push_secondary_reload): Make sure to add the new
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
Diffstat (limited to 'gcc/reload.c')
-rw-r--r--gcc/reload.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index 7f5f35577a7..412852ec744 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. */