From 45a2c4774f993ad7a9ecac91add79b7e2ebef566 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 29 Apr 2011 15:00:04 +0000 Subject: builtins.c (fold_builtin_classify_type): Use integer_type_node for the type of the result. 2011-04-29 Richard Guenther * builtins.c (fold_builtin_classify_type): Use integer_type_node for the type of the result. (fold_builtin_isascii): Likewise. (fold_builtin_toascii): Use integer_type_node where appropriate. (fold_builtin_logb): Likewise. (fold_builtin_frexp): Likewise. (fold_builtin_strstr): Likewise. (fold_builtin_strpbrk): Likewise. (fold_builtin_fputs): Likewise. (fold_builtin_sprintf): Likewise. (fold_builtin_snprintf): Likewise. (fold_builtin_printf): Likewise. (do_mpfr_remquo): Use a proper type for the assigned constant. (do_mpfr_lgamma_r): Likewise. * dwarf2out.c (resolve_one_addr): Use size_int. * except.c (init_eh): Likewise. (assign_filter_values): Use integer_type_node for filter values. (sjlj_emit_dispatch_table): Use integer_type_node for dispatch indices. * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node for EH region numbers. * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node for the shift amount. From-SVN: r173167 --- gcc/dwarf2out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/dwarf2out.c') diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index f3c4c09..fb1dd9c 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -22966,7 +22966,7 @@ resolve_one_addr (rtx *addr, void *data ATTRIBUTE_UNUSED) { size_t len = strlen (XSTR (rtl, 0)) + 1; tree t = build_string (len, XSTR (rtl, 0)); - tree tlen = build_int_cst (NULL_TREE, len - 1); + tree tlen = size_int (len - 1); TREE_TYPE (t) = build_array_type (char_type_node, build_index_type (tlen)); rtl = lookup_constant_def (t); -- cgit v1.1