aboutsummaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@gcc.gnu.org>2000-07-23 17:12:04 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2000-07-23 17:12:04 +0000
commitfe3439b066a146a75b52b3589279e6926dc3ce1e (patch)
tree17209b3e931d53d81cd03c7dae5d80992963fe27 /gcc/explow.c
parentb510e0bd8207f002812d51e1e91940403d789cf1 (diff)
downloadgcc-fe3439b066a146a75b52b3589279e6926dc3ce1e.zip
gcc-fe3439b066a146a75b52b3589279e6926dc3ce1e.tar.gz
gcc-fe3439b066a146a75b52b3589279e6926dc3ce1e.tar.bz2
unuglyfying code
From-SVN: r35205
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;