aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2002-11-20 21:52:59 +0000
committerSteve Ellcey <sje@gcc.gnu.org>2002-11-20 21:52:59 +0000
commit27e58a706fa38f55d87610ed6424523c0ea50bd4 (patch)
tree8b9fd59b5bdc34852b403b5487274127ef1bd390 /gcc/expr.c
parent964b104aba78fdc347d4b9550707653076820b62 (diff)
downloadgcc-27e58a706fa38f55d87610ed6424523c0ea50bd4.zip
gcc-27e58a706fa38f55d87610ed6424523c0ea50bd4.tar.gz
gcc-27e58a706fa38f55d87610ed6424523c0ea50bd4.tar.bz2
emit-rtl.c (gen_reg_rtx): Simplify mapping of Complex type to component type using GET_MODE_INNER.
* emit-rtl.c (gen_reg_rtx): Simplify mapping of Complex type to component type using GET_MODE_INNER. * expr.c (emit_move_insn_1): Ditto. * optabs.c (expand_binop): Ditto. (expand_unop): Ditto. (expand_complex_abs): Ditto. From-SVN: r59317
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index a185311..8dd9a86 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -3152,11 +3152,7 @@ emit_move_insn_1 (x, y)
/* Expand complex moves by moving real part and imag part, if possible. */
else if ((class == MODE_COMPLEX_FLOAT || class == MODE_COMPLEX_INT)
- && BLKmode != (submode = mode_for_size ((GET_MODE_UNIT_SIZE (mode)
- * BITS_PER_UNIT),
- (class == MODE_COMPLEX_INT
- ? MODE_INT : MODE_FLOAT),
- 0))
+ && BLKmode != (submode = GET_MODE_INNER (mode))
&& (mov_optab->handlers[(int) submode].insn_code
!= CODE_FOR_nothing))
{