diff options
author | Richard Guenther <rguenther@suse.de> | 2011-04-29 15:00:04 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-04-29 15:00:04 +0000 |
commit | 45a2c4774f993ad7a9ecac91add79b7e2ebef566 (patch) | |
tree | 6fdd7759300f7da0a22affe74bbed766f62b95e0 /gcc/except.c | |
parent | a3f02fe44c80ce4f76b9f24cd17a4abbe412eb4b (diff) | |
download | gcc-45a2c4774f993ad7a9ecac91add79b7e2ebef566.zip gcc-45a2c4774f993ad7a9ecac91add79b7e2ebef566.tar.gz gcc-45a2c4774f993ad7a9ecac91add79b7e2ebef566.tar.bz2 |
builtins.c (fold_builtin_classify_type): Use integer_type_node for the type of the result.
2011-04-29 Richard Guenther <rguenther@suse.de>
* 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
Diffstat (limited to 'gcc/except.c')
-rw-r--r-- | gcc/except.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/except.c b/gcc/except.c index 5c6359e4..b722fb7 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -225,7 +225,7 @@ init_eh (void) integer_type_node); DECL_FIELD_CONTEXT (f_cs) = sjlj_fc_type_node; - tmp = build_index_type (build_int_cst (NULL_TREE, 4 - 1)); + tmp = build_index_type (size_int (4 - 1)); tmp = build_array_type (lang_hooks.types.type_for_mode (targetm.unwind_word_mode (), 1), tmp); @@ -245,17 +245,17 @@ init_eh (void) #ifdef DONT_USE_BUILTIN_SETJMP #ifdef JMP_BUF_SIZE - tmp = build_int_cst (NULL_TREE, JMP_BUF_SIZE - 1); + tmp = size_int (JMP_BUF_SIZE - 1); #else /* Should be large enough for most systems, if it is not, JMP_BUF_SIZE should be defined with the proper value. It will also tend to be larger than necessary for most systems, a more optimal port will define JMP_BUF_SIZE. */ - tmp = build_int_cst (NULL_TREE, FIRST_PSEUDO_REGISTER + 2 - 1); + tmp = size_int (FIRST_PSEUDO_REGISTER + 2 - 1); #endif #else /* builtin_setjmp takes a pointer to 5 words. */ - tmp = build_int_cst (NULL_TREE, 5 * BITS_PER_WORD / POINTER_SIZE - 1); + tmp = size_int (5 * BITS_PER_WORD / POINTER_SIZE - 1); #endif tmp = build_index_type (tmp); tmp = build_array_type (ptr_type_node, tmp); @@ -857,7 +857,7 @@ assign_filter_values (void) for ( ; tp_node; tp_node = TREE_CHAIN (tp_node)) { int flt = add_ttypes_entry (ttypes, TREE_VALUE (tp_node)); - tree flt_node = build_int_cst (NULL_TREE, flt); + tree flt_node = build_int_cst (integer_type_node, flt); c->filter_list = tree_cons (NULL_TREE, flt_node, c->filter_list); @@ -868,7 +868,7 @@ assign_filter_values (void) /* Get a filter value for the NULL list also since it will need an action record anyway. */ int flt = add_ttypes_entry (ttypes, NULL); - tree flt_node = build_int_cst (NULL_TREE, flt); + tree flt_node = build_int_cst (integer_type_node, flt); c->filter_list = tree_cons (NULL_TREE, flt_node, NULL); @@ -1289,7 +1289,7 @@ sjlj_emit_dispatch_table (rtx dispatch_label, int num_dispatch) t_label = create_artificial_label (UNKNOWN_LOCATION); case_elt = build3 (CASE_LABEL_EXPR, void_type_node, - build_int_cst (NULL, disp_index), + build_int_cst (integer_type_node, disp_index), NULL, t_label); gimple_switch_set_label (switch_stmt, disp_index, case_elt); |