diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2011-07-08 12:57:50 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2011-07-08 12:57:50 +0000 |
commit | 69660a709191cd559cfeb9170b1cad9c1e5daae4 (patch) | |
tree | dbfc3d0e9b173b47f6d2222de19d36b1c0d27471 /gcc/cfgexpand.c | |
parent | 2c50b2c366a178161e90caad85d9dd883b5bfa90 (diff) | |
download | gcc-69660a709191cd559cfeb9170b1cad9c1e5daae4.zip gcc-69660a709191cd559cfeb9170b1cad9c1e5daae4.tar.gz gcc-69660a709191cd559cfeb9170b1cad9c1e5daae4.tar.bz2 |
optabs.c (expand_binop): Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE where appropriate.
* optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
GET_MODE_BITSIZE where appropriate.
(widen_leading, expand_parity, expand_ctz, expand_ffs,
expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
expand_float, expand_fix): Likewise.
* expr.c (convert_move, convert_modes, expand_expr_real_2,
expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
* cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
Likewise.
* convert.c (convert_to_integer): Likewise.
* expmed.c (expand_shift_1): Likewise.
From-SVN: r176038
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 000a790..60e5752 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -2303,7 +2303,7 @@ convert_debug_memory_address (enum machine_mode mode, rtx x, if (GET_MODE (x) == mode || GET_MODE (x) == VOIDmode) return x; - if (GET_MODE_BITSIZE (mode) < GET_MODE_BITSIZE (xmode)) + if (GET_MODE_PRECISION (mode) < GET_MODE_PRECISION (xmode)) x = simplify_gen_subreg (mode, x, xmode, subreg_lowpart_offset (mode, xmode)); @@ -2558,7 +2558,7 @@ expand_debug_expr (tree exp) op0 = simplify_gen_unary (FIX, mode, op0, inner_mode); } else if (CONSTANT_P (op0) - || GET_MODE_BITSIZE (mode) <= GET_MODE_BITSIZE (inner_mode)) + || GET_MODE_PRECISION (mode) <= GET_MODE_PRECISION (inner_mode)) op0 = simplify_gen_subreg (mode, op0, inner_mode, subreg_lowpart_offset (mode, inner_mode)); |