summaryrefslogtreecommitdiff
path: root/gcc/regmove.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-07-26 00:03:18 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-07-26 00:03:18 +0000
commite971a897c27d6711bbe138a566017031dbdac8c5 (patch)
tree6b86ad4694e8b04a0c93523a23c6fc187dc67413 /gcc/regmove.c
parent530e88cf39b69c065919735c0b0f9b020f08c589 (diff)
downloadgcc-e971a897c27d6711bbe138a566017031dbdac8c5.tar.gz
* regmove.c (regmove_optimize): Fix typo initializing regmove_bb_head.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21386 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regmove.c')
-rw-r--r--gcc/regmove.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/regmove.c b/gcc/regmove.c
index b01a6ff10ff..def8c14d5c9 100644
--- a/gcc/regmove.c
+++ b/gcc/regmove.c
@@ -862,7 +862,7 @@ regmove_optimize (f, nregs, regmove_dump_file)
for (i = maxregnum; --i >= 0; ) regno_src_regno[i] = -1;
regmove_bb_head = (int *)alloca (sizeof (int) * (get_max_uid () + 1));
- for (i = get_max_uid (); --i >= 0; ) regmove_bb_head[i] = -1;
+ for (i = get_max_uid (); i >= 0; i--) regmove_bb_head[i] = -1;
for (i = 0; i < n_basic_blocks; i++)
regmove_bb_head[INSN_UID (basic_block_head[i])] = i;