PR middle-end/17416
* cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
in conflict loop.
From-SVN: r87366
+2004-09-11 Richard Henderson <rth@redhat.com>
+
+ PR middle-end/17416
+ * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
+ in conflict loop.
+
2004-09-11 Jan Hubicka <jh@suse.cz>
* i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
resize_stack_vars_conflict (new_sv_num);
for (i = old_sv_num; i < new_sv_num; ++i)
- for (j = i < this_sv_num ? i : this_sv_num; ; --j)
- {
- add_stack_var_conflict (i, j);
- if (j == old_sv_num)
- break;
- }
+ for (j = i < this_sv_num ? i+1 : this_sv_num; j-- > old_sv_num ;)
+ add_stack_var_conflict (i, j);
}
}