aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-mudflap.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-04-29 12:00:55 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-04-29 12:00:55 +0000
commit413581bae8721d0de4bfd7e3c1a419750697c560 (patch)
tree52dcec23eb32763b819accc2f89a34aabd9cc25c /gcc/tree-mudflap.c
parent5c04e9f475d8916abcecd7498ec506e3300f11ca (diff)
downloadgcc-413581bae8721d0de4bfd7e3c1a419750697c560.zip
gcc-413581bae8721d0de4bfd7e3c1a419750697c560.tar.gz
gcc-413581bae8721d0de4bfd7e3c1a419750697c560.tar.bz2
tree-nested.c (get_trampoline_type): Use size_int.
2011-04-29 Richard Guenther <rguenther@suse.de> * tree-nested.c (get_trampoline_type): Use size_int. (get_nl_goto_field): Likewise. * tree-eh.c (lower_try_finally_switch): Use integer_type_node for all indexes. (lower_eh_constructs_2): Likewise. (lower_resx): Likewise. (lower_eh_dispatch): Likewise. * tree-mudflap.c (mf_build_string): Use size_int. (mudflap_register_call): Use integer_type_node for the flag. (mudflap_enqueue_constant): Use size_int. * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR instead of rebuilding it. From-SVN: r173153
Diffstat (limited to 'gcc/tree-mudflap.c')
-rw-r--r--gcc/tree-mudflap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c
index 109150f..40120b0 100644
--- a/gcc/tree-mudflap.c
+++ b/gcc/tree-mudflap.c
@@ -81,7 +81,7 @@ mf_build_string (const char *string)
tree result = mf_mark (build_string (len + 1, string));
TREE_TYPE (result) = build_array_type
- (char_type_node, build_index_type (build_int_cst (NULL_TREE, len)));
+ (char_type_node, build_index_type (size_int (len)));
TREE_CONSTANT (result) = 1;
TREE_READONLY (result) = 1;
TREE_STATIC (result) = 1;
@@ -1251,7 +1251,7 @@ mudflap_register_call (tree obj, tree object_size, tree varname)
arg,
convert (size_type_node, object_size),
/* __MF_TYPE_STATIC */
- build_int_cst (NULL_TREE, 4),
+ build_int_cst (integer_type_node, 4),
varname);
append_to_statement_list (call_stmt, &enqueued_call_stmt_chain);
@@ -1284,7 +1284,7 @@ mudflap_enqueue_constant (tree obj)
return;
if (TREE_CODE (obj) == STRING_CST)
- object_size = build_int_cst (NULL_TREE, TREE_STRING_LENGTH (obj));
+ object_size = size_int (TREE_STRING_LENGTH (obj));
else
object_size = size_in_bytes (TREE_TYPE (obj));