From: Jim Wilson Date: Wed, 25 Jan 1995 23:09:41 +0000 (-0800) Subject: (expand_expr, case MIN_EXPR): If must emit multiple X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa2981d865a08fd388fad6480959a7a965f880ea;p=gcc.git (expand_expr, case MIN_EXPR): If must emit multiple instructions, then don't allow a MEM target. From-SVN: r8822 --- 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);