expr.c (can_store_by_pieces): Reinitialize max_size for reverse tests.

* expr.c (can_store_by_pieces): Reinitialize max_size for reverse
	tests.

From-SVN: r37857
This commit is contained in:
Jakub Jelinek 2000-11-29 22:03:33 +01:00 committed by Jakub Jelinek
parent b2d7dd203a
commit 9816663912
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-11-29 Jakub Jelinek <jakub@redhat.com>
* expr.c (can_store_by_pieces): Reinitialize max_size for reverse
tests.
2000-11-29 Neil Booth <neilb@earthling.net>
* c-pragma.c (init_pragma): Update for parse_in type change.

View File

@ -2263,7 +2263,7 @@ can_store_by_pieces (len, constfun, constfundata, align)
PTR constfundata;
unsigned int align;
{
unsigned HOST_WIDE_INT max_size = MOVE_MAX_PIECES + 1, l;
unsigned HOST_WIDE_INT max_size, l;
HOST_WIDE_INT offset = 0;
enum machine_mode mode, tmode;
enum insn_code icode;
@ -2286,6 +2286,7 @@ can_store_by_pieces (len, constfun, constfundata, align)
{
l = len;
mode = VOIDmode;
max_size = MOVE_MAX_PIECES + 1;
while (max_size > 1)
{
for (tmode = GET_CLASS_NARROWEST_MODE (MODE_INT);