aboutsummaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/explow.c')
-rw-r--r--gcc/explow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/explow.c b/gcc/explow.c
index ff4f4c4..ce7118e 100644
--- a/gcc/explow.c
+++ b/gcc/explow.c
@@ -842,8 +842,10 @@ force_not_mem (x)
rtx x;
{
register rtx temp;
+
if (GET_CODE (x) != MEM || GET_MODE (x) == BLKmode)
return x;
+
temp = gen_reg_rtx (GET_MODE (x));
emit_move_insn (temp, x);
return temp;