From fa2981d865a08fd388fad6480959a7a965f880ea Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 25 Jan 1995 15:09:41 -0800 Subject: [PATCH] (expand_expr, case MIN_EXPR): If must emit multiple instructions, then don't allow a MEM target. From-SVN: r8822 --- gcc/expr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/expr.c b/gcc/expr.c index 785e74294e1..7cc7d284ccc 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -5447,6 +5447,12 @@ expand_expr (exp, target, tmode, modifier) if (temp != 0) return temp; + /* At this point, a MEM target is no longer useful; we will get better + code without it. */ + + if (GET_CODE (target) == MEM) + target = gen_reg_rtx (mode); + if (target != op0) emit_move_insn (target, op0); -- 2.30.2