diff options
Diffstat (limited to 'gcc/tree-nested.c')
-rw-r--r-- | gcc/tree-nested.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-nested.c b/gcc/tree-nested.c index 7ae506e8558..00dbee988cd 100644 --- a/gcc/tree-nested.c +++ b/gcc/tree-nested.c @@ -405,7 +405,7 @@ get_trampoline_type (void) align = STACK_BOUNDARY; } - t = build_index_type (build_int_2 (size - 1, 0)); + t = build_index_type (build_int_cst (NULL_TREE, size - 1, 0)); t = build_array_type (char_type_node, t); t = build_decl (FIELD_DECL, get_identifier ("__data"), t); DECL_ALIGN (t) = align; @@ -488,7 +488,8 @@ get_nl_goto_field (struct nesting_info *info) size = size / GET_MODE_SIZE (Pmode); size = size + 1; - type = build_array_type (type, build_index_type (build_int_2 (size, 0))); + type = build_array_type + (type, build_index_type (build_int_cst (NULL_TREE, size, 0))); field = make_node (FIELD_DECL); DECL_NAME (field) = get_identifier ("__nl_goto_buf"); |