diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/reload.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b566b71..b201e50 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-01-30 Jan Hubicka <jh@suse.cz> + + * reload.c (get_secondary_mem): Fix updating of + secondary_memlocs_elim_used. + 2004-01-30 Richard Henderson <rth@redhat.com> * varasm.c (struct rtx_const, struct pool_constant): Remove. 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; } |