diff options
Diffstat (limited to 'gcc/fortran/trans-decl.c')
-rw-r--r-- | gcc/fortran/trans-decl.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c index bd1ebab..5dd5d2a 100644 --- a/gcc/fortran/trans-decl.c +++ b/gcc/fortran/trans-decl.c @@ -131,6 +131,9 @@ tree gfor_fndecl_caf_sync_all; tree gfor_fndecl_caf_sync_images; tree gfor_fndecl_caf_error_stop; tree gfor_fndecl_caf_error_stop_str; +tree gfor_fndecl_co_max; +tree gfor_fndecl_co_min; +tree gfor_fndecl_co_sum; /* Math functions. Many other math functions are handled in @@ -3280,12 +3283,12 @@ gfc_build_builtin_function_decls (void) gfor_fndecl_caf_sync_all = gfc_build_library_function_decl_with_spec ( get_identifier (PREFIX("caf_sync_all")), ".WW", void_type_node, - 3, pint_type, build_pointer_type (pchar_type_node), integer_type_node); + 3, pint_type, pchar_type_node, integer_type_node); gfor_fndecl_caf_sync_images = gfc_build_library_function_decl_with_spec ( get_identifier (PREFIX("caf_sync_images")), ".RRWW", void_type_node, 5, integer_type_node, pint_type, pint_type, - build_pointer_type (pchar_type_node), integer_type_node); + pchar_type_node, integer_type_node); gfor_fndecl_caf_error_stop = gfc_build_library_function_decl ( get_identifier (PREFIX("caf_error_stop")), @@ -3298,6 +3301,21 @@ gfc_build_builtin_function_decls (void) void_type_node, 2, pchar_type_node, gfc_int4_type_node); /* CAF's ERROR STOP doesn't return. */ TREE_THIS_VOLATILE (gfor_fndecl_caf_error_stop_str) = 1; + + gfor_fndecl_co_max = gfc_build_library_function_decl_with_spec ( + get_identifier (PREFIX("caf_co_max")), "WR.WW", + void_type_node, 7, pvoid_type_node, pvoid_type_node, integer_type_node, + pint_type, pchar_type_node, integer_type_node, integer_type_node); + + gfor_fndecl_co_min = gfc_build_library_function_decl_with_spec ( + get_identifier (PREFIX("caf_co_min")), "WR.WW", + void_type_node, 7, pvoid_type_node, pvoid_type_node, integer_type_node, + pint_type, pchar_type_node, integer_type_node, integer_type_node); + + gfor_fndecl_co_sum = gfc_build_library_function_decl_with_spec ( + get_identifier (PREFIX("caf_co_sum")), "WR.WW", + void_type_node, 6, pvoid_type_node, pvoid_type_node, integer_type_node, + pint_type, pchar_type_node, integer_type_node); } gfc_build_intrinsic_function_decls (); |