When encountering a memcmp with something like ULONG_MAX for the size, a calculation can overflow in by_pieces_ninsns because it uses int rather than HOST_WIDE_INT. Bootstrapped & tested on x86_64-linux, committed as obvious. Bernd