From b62a2e153492f5b8f7827ede61e1494785f14430 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Mon, 17 Sep 2007 02:13:23 +0000 Subject: [PATCH] re PR middle-end/33273 (FAIL: 27_io/basic_istream/ignore/char/1.cc (test for excess errors)) PR middle-end/33273 * expr.c (store_expr): Call adjust_address to change mode of dest_mem to BLKmode. From-SVN: r128537 --- gcc/ChangeLog | 6 ++++++ gcc/expr.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60bd52db87f2..1239d63c2ac8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-09-16 John David Anglin + + PR middle-end/33273 + * expr.c (store_expr): Call adjust_address to change mode of dest_mem + to BLKmode. + 2007-09-16 Richard Sandiford * dse.c (find_shift_sequence): Allow word as well as subword shifts. diff --git a/gcc/expr.c b/gcc/expr.c index 554d72a38a9f..93028108c481 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -4541,7 +4541,8 @@ store_expr (tree exp, rtx target, int call_param_p, bool nontemporal) MEM_ALIGN (target), false, exp_len > str_copy_len ? 1 : 0); if (exp_len > str_copy_len) - clear_storage (dest_mem, GEN_INT (exp_len - str_copy_len), + clear_storage (adjust_address (dest_mem, BLKmode, 0), + GEN_INT (exp_len - str_copy_len), BLOCK_OP_NORMAL); return NULL_RTX; }