From 4bcc9de5fd598dec1c621f98fa7c37f6940c65d4 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Fri, 18 May 2007 10:37:03 +0200 Subject: re PR middle-end/31344 (bootstrap broken on i[345]86-linux) PR rtl-optimization/31344 * expr.c (emit_move_change_mode): Change mode of push operands here. testsuite/ChangeLog: PR rtl-optimization/31344 * gcc.dg/pr31344.c: New test. From-SVN: r124825 --- gcc/expr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc/expr.c') diff --git a/gcc/expr.c b/gcc/expr.c index 9286ffa..8c4b03d 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -2867,7 +2867,12 @@ emit_move_change_mode (enum machine_mode new_mode, { rtx ret; - if (MEM_P (x)) + if (push_operand (x, GET_MODE (x))) + { + ret = gen_rtx_MEM (new_mode, XEXP (x, 0)); + MEM_COPY_ATTRIBUTES (ret, x); + } + else if (MEM_P (x)) { /* We don't have to worry about changing the address since the size in bytes is supposed to be the same. */ -- cgit v1.1