aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.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/emit-rtl.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/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 2cf4107..0d9be17 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -802,12 +802,7 @@ gen_reg_rtx (mode)
which makes much better code. Besides, allocating DCmode
pseudos overstrains reload on some machines like the 386. */
rtx realpart, imagpart;
- int size = GET_MODE_UNIT_SIZE (mode);
- enum machine_mode partmode
- = mode_for_size (size * BITS_PER_UNIT,
- (GET_MODE_CLASS (mode) == MODE_COMPLEX_FLOAT
- ? MODE_FLOAT : MODE_INT),
- 0);
+ enum machine_mode partmode = GET_MODE_INNER (mode);
realpart = gen_reg_rtx (partmode);
imagpart = gen_reg_rtx (partmode);