summaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-23 17:12:04 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-23 17:12:04 +0000
commitbf6a742f4f717434ee922b64a5de6e0e4f50ec4e (patch)
tree17209b3e931d53d81cd03c7dae5d80992963fe27 /gcc/explow.c
parentfb16234a73670ee2186d09e1087295f6d913fecc (diff)
downloadgcc-bf6a742f4f717434ee922b64a5de6e0e4f50ec4e.tar.gz
unuglyfying code
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35205 138bc75d-0d04-0410-961f-82ee72b054a4
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 ff4f4c4229b..ce7118eeb17 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;