diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-29 12:00:55 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-29 12:00:55 +0000 |
commit | bad12c62eab5d1354e2fcfe01d0bb175dae81a69 (patch) | |
tree | 52dcec23eb32763b819accc2f89a34aabd9cc25c /gcc/tree-mudflap.c | |
parent | cb755135830b10ecb9f1a15e3ba626f06caf803d (diff) | |
download | gcc-bad12c62eab5d1354e2fcfe01d0bb175dae81a69.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173153 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-mudflap.c')
-rw-r--r-- | gcc/tree-mudflap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c index 109150f7e73..40120b0dd4f 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)); |