[PATCH] Stop looping in move_by_pieces loops when there's no more data to process

2012-10-16 Thread Tom de Vries
Jakub, I've noticed that the move_by_pieces loops keep iterating after there's no more data to process. I've added this assert to trigger an example in a gcc build: ... Index: src/gcc/expr.c === --- src/gcc/expr.c (revision 191792)

Re: [PATCH] Stop looping in move_by_pieces loops when there's no more data to process

2012-10-16 Thread Jakub Jelinek
On Tue, Oct 16, 2012 at 08:40:21AM +0200, Tom de Vries wrote: 2012-10-16 Tom de Vries t...@codesourcery.com * expr.c (move_by_pieces, move_by_pieces_ninsns, can_store_by_pieces) (store_by_pieces_1): Don't enter loop when no more data is left. Okay. Jakub