if (fn == NULL_TREE)
{
fn = build_function_type_list (void_type_node, ptr_type_node, NULL_TREE);
+ tree att = build_tree_list (NULL_TREE, build_string (4, ". R "));
+ att = tree_cons (get_identifier ("fn spec"), att, TYPE_ATTRIBUTES (fn));
+ fn = build_type_attribute_variant (fn, att);
fn = build_fn_decl ("GOMP_add_alloc", fn);
-/* FIXME: attributes. */
}
return build_call_expr_loc (input_location, fn, 1, ptr);
}
fn = build_function_type_list (boolean_type_node, ptr_type_node,
NULL_TREE);
fn = build_fn_decl ("GOMP_is_alloc", fn);
-/* FIXME: attributes. */
+ tree att = build_tree_list (NULL_TREE, build_string (4, ". R "));
+ att = tree_cons (get_identifier ("fn spec"), att, TYPE_ATTRIBUTES (fn));
+ fn = build_type_attribute_variant (fn, att);
}
return build_call_expr_loc (input_location, fn, 1, ptr);
}
/* allocator.c */
+extern void GOMP_add_alloc (void *);
+extern bool GOMP_is_alloc (void *);
+
extern void *GOMP_alloc (size_t, size_t, uintptr_t);
extern void GOMP_free (void *, uintptr_t);