summaryrefslogtreecommitdiff
path: root/gcc/tree-nested.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-29 12:00:55 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-29 12:00:55 +0000
commitbad12c62eab5d1354e2fcfe01d0bb175dae81a69 (patch)
tree52dcec23eb32763b819accc2f89a34aabd9cc25c /gcc/tree-nested.c
parentcb755135830b10ecb9f1a15e3ba626f06caf803d (diff)
downloadgcc-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-nested.c')
-rw-r--r--gcc/tree-nested.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-nested.c b/gcc/tree-nested.c
index c5ca65baabb..1b26eca5a2a 100644
--- a/gcc/tree-nested.c
+++ b/gcc/tree-nested.c
@@ -486,7 +486,7 @@ get_trampoline_type (struct nesting_info *info)
align = STACK_BOUNDARY;
}
- t = build_index_type (build_int_cst (NULL_TREE, size - 1));
+ t = build_index_type (size_int (size - 1));
t = build_array_type (char_type_node, t);
t = build_decl (DECL_SOURCE_LOCATION (info->context),
FIELD_DECL, get_identifier ("__data"), t);
@@ -561,7 +561,7 @@ get_nl_goto_field (struct nesting_info *info)
size = size + 1;
type = build_array_type
- (type, build_index_type (build_int_cst (NULL_TREE, size)));
+ (type, build_index_type (size_int (size)));
field = make_node (FIELD_DECL);
DECL_NAME (field) = get_identifier ("__nl_goto_buf");