From 7d362f6c2b99e2b0cedf44e52194c578bdf00053 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 18 Nov 2013 14:52:56 +0000 Subject: 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 --- gcc/tree.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/tree.h') diff --git a/gcc/tree.h b/gcc/tree.h index 2ac3480..f63672c 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -3668,7 +3668,7 @@ extern bool tree_fits_uhwi_p (const_tree) #endif ; extern HOST_WIDE_INT tree_to_shwi (const_tree); -extern HOST_WIDE_INT tree_to_uhwi (const_tree); +extern unsigned HOST_WIDE_INT tree_to_uhwi (const_tree); #if !defined ENABLE_TREE_CHECKING && (GCC_VERSION >= 4003) extern inline __attribute__ ((__gnu_inline__)) HOST_WIDE_INT tree_to_shwi (const_tree t) @@ -3677,7 +3677,7 @@ tree_to_shwi (const_tree t) return TREE_INT_CST_LOW (t); } -extern inline __attribute__ ((__gnu_inline__)) HOST_WIDE_INT +extern inline __attribute__ ((__gnu_inline__)) unsigned HOST_WIDE_INT tree_to_uhwi (const_tree t) { gcc_assert (tree_fits_uhwi_p (t)); -- cgit v1.1