aboutsummaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2004-01-30 21:42:24 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2004-01-30 20:42:24 +0000
commit98e5e08701da5a0f77eb8f3efc824043ec635bdf (patch)
treee5327ca22a578a988afd390b637c7103ce5dbb12 /gcc/reload.c
parent3234b52d0bc60cca2f726dc54364aeef9eb94840 (diff)
downloadgcc-98e5e08701da5a0f77eb8f3efc824043ec635bdf.zip
gcc-98e5e08701da5a0f77eb8f3efc824043ec635bdf.tar.gz
gcc-98e5e08701da5a0f77eb8f3efc824043ec635bdf.tar.bz2
reload.c (get_secondary_mem): Fix updating of secondary_memlocs_elim_used.
* reload.c (get_secondary_mem): Fix updating of secondary_memlocs_elim_used. From-SVN: r76989
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 83aa8d2..e105ac9 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;
}