void
gfc_build_builtin_function_decls (void)
{
+ tree gfc_int4_type_node = gfc_get_int_type (4);
+ tree gfc_pint4_type_node = build_pointer_type (gfc_int4_type_node);
tree gfc_int8_type_node = gfc_get_int_type (8);
tree pint_type = build_pointer_type (integer_type_node);
+ tree pchar1_type_node = gfc_get_pchar_type (1);
gfor_fndecl_stop_numeric = gfc_build_library_function_decl (
get_identifier (PREFIX("stop_numeric")),
size_type_node, /* elem_size. */
integer_type_node, /* corank. */
integer_type_node, /* alloc_type. */
- pvoid_type_node, /* stat. */
- pvoid_type_node, /* errmsg. */
+ gfc_pint4_type_node, /* stat. */
+ pchar1_type_node, /* errmsg. */
gfc_charlen_type_node, /* errmsg_len. */
NULL_TREE);
gfor_fndecl_cas_coarray_free = gfc_build_library_function_decl_with_spec (
NULL_TREE, true, NULL, &element_size);
elem_size = size_in_bytes (gfc_get_element_type (TREE_TYPE(decl)));
gfc_allocate_shared_coarray (init, decl, elem_size, sym->as->rank,
- sym->as->corank, alloc_type, null_pointer_node,
- null_pointer_node,
+ sym->as->corank, alloc_type,
+ NULL_TREE, NULL_TREE,
build_int_cst (gfc_charlen_type_node, 0),
false);
gfc_conv_descriptor_offset_set (init, decl, offset);