summaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-30 20:42:24 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-30 20:42:24 +0000
commit88b8887c834287197a41674003609578de4999be (patch)
treee5327ca22a578a988afd390b637c7103ce5dbb12 /gcc/reload.c
parent01714e38cf844e3d5e09914b945820a373ca7356 (diff)
downloadgcc-88b8887c834287197a41674003609578de4999be.tar.gz
* reload.c (get_secondary_mem): Fix updating of
secondary_memlocs_elim_used. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76989 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.c')
-rw-r--r--gcc/reload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index 83aa8d24f0f..e105ac9a715 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -645,8 +645,8 @@ get_secondary_mem (rtx x ATTRIBUTE_UNUSED, enum machine_mode mode,
}
secondary_memlocs_elim[(int) mode][opnum] = loc;
- if (secondary_memlocs_elim_used <= opnum)
- secondary_memlocs_elim_used = opnum + 1;
+ if (secondary_memlocs_elim_used <= (int)mode)
+ secondary_memlocs_elim_used = (int)mode + 1;
return loc;
}