aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-03-07 14:31:40 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-03-07 14:31:40 +0000
commit0f2508394bbfae077f3e5d7ca05e93cabff06471 (patch)
tree9367ae3ff084cabf2d89d91b25e317ab9c681ccc /gcc/expr.c
parent647d4b7512f3ecb46466e433adf975d01b810054 (diff)
downloadgcc-0f2508394bbfae077f3e5d7ca05e93cabff06471.zip
gcc-0f2508394bbfae077f3e5d7ca05e93cabff06471.tar.gz
gcc-0f2508394bbfae077f3e5d7ca05e93cabff06471.tar.bz2
coverage.c (get_gcov_type): Use type_for_mode.
2012-03-07 Richard Guenther <rguenther@suse.de> * coverage.c (get_gcov_type): Use type_for_mode. (get_gcov_unsigned_t): Likewise. * expr.c (store_constructor): Use type_for_mode. (try_casesi): Likewise. * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove. (add_standard_iv_candidates): Use standard type trees. * dojump.c (do_jump): Remove dead code. From-SVN: r185048
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index a3ace7a..e6fc100 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -5893,8 +5893,8 @@ store_constructor (tree exp, rtx target, int cleared, HOST_WIDE_INT size)
if (TYPE_PRECISION (type) < BITS_PER_WORD)
{
- type = lang_hooks.types.type_for_size
- (BITS_PER_WORD, TYPE_UNSIGNED (type));
+ type = lang_hooks.types.type_for_mode
+ (word_mode, TYPE_UNSIGNED (type));
value = fold_convert (type, value);
}
@@ -10726,7 +10726,6 @@ try_casesi (tree index_type, tree index_expr, tree minval, tree range,
{
struct expand_operand ops[5];
enum machine_mode index_mode = SImode;
- int index_bits = GET_MODE_BITSIZE (index_mode);
rtx op1, op2, index;
if (! HAVE_casesi)
@@ -10753,7 +10752,7 @@ try_casesi (tree index_type, tree index_expr, tree minval, tree range,
{
if (TYPE_MODE (index_type) != index_mode)
{
- index_type = lang_hooks.types.type_for_size (index_bits, 0);
+ index_type = lang_hooks.types.type_for_mode (index_mode, 0);
index_expr = fold_convert (index_type, index_expr);
}