aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-forwprop.c
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2013-11-18 14:52:56 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2013-11-18 14:52:56 +0000
commit7d362f6c2b99e2b0cedf44e52194c578bdf00053 (patch)
treebc3f5ccb003ab318e04d250e0610c40cf5569900 /gcc/tree-ssa-forwprop.c
parentb23b672e8d503ddd027a61807e3cc5ea9aaf2a4b (diff)
downloadgcc-7d362f6c2b99e2b0cedf44e52194c578bdf00053.zip
gcc-7d362f6c2b99e2b0cedf44e52194c578bdf00053.tar.gz
gcc-7d362f6c2b99e2b0cedf44e52194c578bdf00053.tar.bz2
c-common.c (convert_vector_to_pointer_for_subscript): Remove cast to unsigned type.
gcc/c-family/ * c-common.c (convert_vector_to_pointer_for_subscript): Remove cast to unsigned type. gcc/ * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT. * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT. (tree_ctz): Remove cast to unsigned type. * builtins.c (fold_builtin_memory_op): Likewise. * dwarf2out.c (descr_info_loc): Likewise. * godump.c (go_output_typedef): Likewise. * omp-low.c (expand_omp_simd): Likewise. * stor-layout.c (excess_unit_span): Likewise. * tree-object-size.c (addr_object_size): Likewise. * tree-sra.c (analyze_all_variable_accesses): Likewise. * tree-ssa-forwprop.c (simplify_builtin_call): Likewise. (simplify_rotate): Likewise. * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy) (handle_pointer_plus): Likewise. * tree-switch-conversion.c (check_range): Likewise. * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise. * tsan.c (instrument_builtin_call): Likewise. * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT. * trans-mem.c (tm_log_add): Likewise. * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise. * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise. * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise. * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned. From-SVN: r204964
Diffstat (limited to 'gcc/tree-ssa-forwprop.c')
-rw-r--r--gcc/tree-ssa-forwprop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c
index 0a8d425..817fa9f 100644
--- a/gcc/tree-ssa-forwprop.c
+++ b/gcc/tree-ssa-forwprop.c
@@ -1601,7 +1601,7 @@ simplify_builtin_call (gimple_stmt_iterator *gsi_p, tree callee2)
as the new memcpy length, if it is too big, bail out. */
src_len = tree_to_uhwi (diff);
src_len += tree_to_uhwi (len2);
- if (src_len < (unsigned HOST_WIDE_INT) tree_to_uhwi (len1))
+ if (src_len < tree_to_uhwi (len1))
src_len = tree_to_uhwi (len1);
if (src_len > 1024)
break;
@@ -2319,7 +2319,7 @@ simplify_rotate (gimple_stmt_iterator *gsi)
/* CNT1 + CNT2 == B case above. */
if (tree_fits_uhwi_p (def_arg2[0])
&& tree_fits_uhwi_p (def_arg2[1])
- && (unsigned HOST_WIDE_INT) tree_to_uhwi (def_arg2[0])
+ && tree_to_uhwi (def_arg2[0])
+ tree_to_uhwi (def_arg2[1]) == TYPE_PRECISION (rtype))
rotcnt = def_arg2[0];
else if (TREE_CODE (def_arg2[0]) != SSA_NAME