@@ -2445,7 +2445,6 @@ conv_intrinsic_image_status (gfc_se *se, gfc_expr *expr)
24452445 se -> expr = tmp ;
24462446}
24472447
2448- //ARTLESS : look at impementation of co_sum, image_status
24492448static void
24502449conv_intrinsic_team_number (gfc_se * se , gfc_expr * expr )
24512450{
@@ -2458,23 +2457,13 @@ conv_intrinsic_team_number (gfc_se *se, gfc_expr *expr)
24582457 args = XALLOCAVEC (tree , num_args );
24592458 gfc_conv_intrinsic_function_args (se , expr , args , num_args );
24602459
2460+ //
2461+ // TODO
2462+ // for GFC_FCOARRAY_SINGLE put error message "not currently implemented"?
2463+
24612464 if (flag_coarray == GFC_FCOARRAY_SINGLE && expr -> value .function .actual -> expr )
24622465 {
2463- /* gfc_se argse; */
2464- /* tree team_id,team_type; */
2465- /* gfc_init_se (&argse, NULL); */
2466- /* gfc_conv_expr_val (&argse, code->expr1); */
2467- /* team_id = fold_convert (integer_type_node, argse.expr); */
2468- /* gfc_init_se (&argse, NULL); */
2469- /* gfc_conv_expr_val (&argse, code->expr2); */
2470- /* team_type = gfc_build_addr_expr (ppvoid_type_node, argse.expr); */
2471- /* return build_call_expr_loc (input_location, */
2472- /* gfor_fndecl_caf_form_team, 3, */
2473- /* team_id, team_type, */
2474- /* build_int_cst (integer_type_node, 0)); */
2475-
24762466 tree arg ;
2477- printf ("TRANS TEST: %d\n" ,args [0 ]);
24782467
24792468 arg = gfc_evaluate_now (args [0 ], & se -> pre );
24802469 tmp = fold_build2_loc (input_location , EQ_EXPR , logical_type_node ,
@@ -2487,9 +2476,7 @@ conv_intrinsic_team_number (gfc_se *se, gfc_expr *expr)
24872476 }
24882477 else if (flag_coarray == GFC_FCOARRAY_SINGLE )
24892478 {
2490- //
2491- // # T O D O
2492- // if initial team
2479+ // the value -1 represents that no team has been created yet
24932480 tmp = build_int_cst (integer_type_node , -1 );
24942481 }
24952482 else if (flag_coarray == GFC_FCOARRAY_LIB && expr -> value .function .actual -> expr )
@@ -8727,7 +8714,7 @@ gfc_conv_intrinsic_function (gfc_se * se, gfc_expr * expr)
87278714 case GFC_ISYM_MINLOC :
87288715 gfc_conv_intrinsic_minmaxloc (se , expr , LT_EXPR );
87298716 break ;
8730-
8717+
87318718 case GFC_ISYM_MAXLOC :
87328719 gfc_conv_intrinsic_minmaxloc (se , expr , GT_EXPR );
87338720 break ;
0 commit comments