Skip to content

Commit 6bc3241

Browse files
author
Damian Rouson
committed
Edits based on ./contrib/check_GNU_style.sh output
1 parent 81a4a71 commit 6bc3241

File tree

5 files changed

+31
-30
lines changed

5 files changed

+31
-30
lines changed

gcc/fortran/ChangeLog

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
2018-01-19 Damian Rouson <[email protected]>
1+
2018-01-18 Damian Rouson <[email protected]>
22
Alessandro Fanfarillo <[email protected]>
33

44
Partial support for Fortran 2018 teams features.
55

6-
* array.c (gfc_match_array_ref): add team attribute in coarray
6+
* array.c (gfc_match_array_ref): add team attribute in coarray
77
transfers.
8-
* check.c (gfc_check_get_team, gfc_check_team_number): add new
8+
* check.c (gfc_check_get_team, gfc_check_team_number): add new
99
functions for get_team and team_number.
10-
* dump-parse-tree.c (show_code_node): add new statements: form team,
10+
* dump-parse-tree.c (show_code_node): add new statements: form team,
1111
change team, end team, and sync team.
12-
* expr.c (gfc_find_team_co): add new function.
13-
* gfortran.h: add new statements.
14-
* intrinsic.c (add_functions): add get_team and team_number functions.
15-
* intrinsic.h: add get_team and team_number prototypes for check,
12+
* expr.c (gfc_find_team_co): add new function.
13+
* gfortran.h: add new statements.
14+
* intrinsic.c (add_functions): add get_team and team_number functions.
15+
* intrinsic.h: add get_team and team_number prototypes for check,
1616
simplify, and resolve.
17-
* iresolve.c (gfc_resolve_get_team, gfc_resolve_team_number): add new
17+
* iresolve.c (gfc_resolve_get_team, gfc_resolve_team_number): add new
1818
functions.
19-
* iso-fortran-env.def: add the team_type derived type.
20-
* match.c (gfc_match_if, gfc_match_form_team, gfc_match_team_number)
19+
* iso-fortran-env.def: add the team_type derived type.
20+
* match.c (gfc_match_if, gfc_match_form_team, gfc_match_team_number)
2121
(gfc_match_end_team, gfc_match_sync_team, gfc_match_change_team):
2222
add change team, end team, form team, sync team match and functions.
23-
* match.h: add new prototypes for change team, end team, form team,
23+
* match.h: add new prototypes for change team, end team, form team,
2424
and sync team.
25-
* parse.c (decode_statement): add cases for change team, end team,
25+
* parse.c (decode_statement): add cases for change team, end team,
2626
form team, and sync team.
27-
* resolve.c: add cases for exec form team, change team, end team, and
27+
* resolve.c: add cases for exec form team, change team, end team, and
2828
sync team.
29-
* simplify.c (gfc_simplify_get_team): add new function for get team.
30-
* st.c (gfc_free_statement): add cases exec for change team, end team,
29+
* simplify.c (gfc_simplify_get_team): add new function for get team.
30+
* st.c (gfc_free_statement): add cases exec for change team, end team,
3131
form team, sync team.
32-
* trans-decl.c (gfor_fndecl_caf_form_team)
32+
* trans-decl.c (gfor_fndecl_caf_form_team)
3333
(gfor_fndecl_caf_change_team, gfor_fndecl_caf_end_team)
3434
(gfor_fndecl_caf_sync_team, gfor_fndecl_caf_get_team)
3535
(gfor_fndecl_caf_team_number): add functions and definitions.
36-
* trans-intrinsic.c (conv_caf_send, conv_intrinsic_team_number): add
36+
* trans-intrinsic.c (conv_caf_send, conv_intrinsic_team_number): add
3737
new function and team_type argument support.
38-
* trans-stmt.c (gfc_trans_form_team, gfc_trans_change_team)
38+
* trans-stmt.c (gfc_trans_form_team, gfc_trans_change_team)
3939
(gfc_trans_end_team, gfc_trans_sync_team): add new functions.
40-
* trans-stmt.h: add new prototypes.
41-
* trans-types.c (gfc_get_derived_type): check condition for team_type.
40+
* trans-stmt.h: add new prototypes.
41+
* trans-types.c (gfc_get_derived_type): check condition for team_type.
4242
* trans.c (trans_code): new exec cases for form team, change team, end
4343
team, and sync team.
4444
* trans.h: add new prototypes.

gcc/fortran/check.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,7 +2278,7 @@ gfc_check_eoshift (gfc_expr *array, gfc_expr *shift, gfc_expr *boundary,
22782278
return false;
22792279
}
22802280
}
2281-
2281+
22822282
if (array->rank == 1 || boundary->rank == 0)
22832283
{
22842284
if (!scalar_check (boundary, 2))
@@ -2327,7 +2327,7 @@ gfc_check_eoshift (gfc_expr *array, gfc_expr *shift, gfc_expr *boundary,
23272327
case BT_COMPLEX:
23282328
case BT_CHARACTER:
23292329
break;
2330-
2330+
23312331
default:
23322332
gfc_error ("Missing %qs argument to %qs intrinsic at %L for %qs "
23332333
"of type %qs", gfc_current_intrinsic_arg[2]->name,
@@ -5299,8 +5299,8 @@ gfc_check_team_number (gfc_expr *team)
52995299

53005300
if (team)
53015301
{
5302-
/* todo: this works on any derived type when
5303-
it should only work with type team */
5302+
/* TODO: this works on any derived type when
5303+
it should only work with team_type. */
53045304
if (team->ts.type != BT_DERIVED)
53055305
{
53065306
gfc_error ("TEAM argument at %L to the intrinsic TEAM_NUMBER "

gcc/fortran/intrinsic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3070,7 +3070,7 @@ add_functions (void)
30703070

30713071
add_sym_1 ("team_number", GFC_ISYM_TEAM_NUMBER, CLASS_TRANSFORMATIONAL,
30723072
ACTUAL_YES, BT_INTEGER, di, GFC_STD_F2008_TS,
3073-
gfc_check_team_number, NULL, gfc_resolve_team_number,
3073+
gfc_check_team_number, NULL, gfc_resolve_team_number,
30743074
team, BT_DERIVED, di, OPTIONAL);
30753075

30763076
add_sym_3 ("this_image", GFC_ISYM_THIS_IMAGE, CLASS_INQUIRY, ACTUAL_NO, BT_INTEGER, di, GFC_STD_F2008,

gcc/fortran/trans-intrinsic.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2456,7 +2456,8 @@ conv_intrinsic_team_number (gfc_se *se, gfc_expr *expr)
24562456
args = XALLOCAVEC (tree, num_args);
24572457
gfc_conv_intrinsic_function_args (se, expr, args, num_args);
24582458

2459-
if (flag_coarray == GFC_FCOARRAY_SINGLE && expr->value.function.actual->expr)
2459+
if (flag_coarray ==
2460+
GFC_FCOARRAY_SINGLE && expr->value.function.actual->expr)
24602461
{
24612462
tree arg;
24622463

@@ -2479,7 +2480,7 @@ conv_intrinsic_team_number (gfc_se *se, gfc_expr *expr)
24792480
args[0], build_int_cst (integer_type_node, -1));
24802481
else if (flag_coarray == GFC_FCOARRAY_LIB)
24812482
tmp = build_call_expr_loc (input_location, gfor_fndecl_caf_team_number, 1,
2482-
integer_zero_node, build_int_cst (integer_type_node, -1));
2483+
integer_zero_node, build_int_cst (integer_type_node, -1));
24832484
else
24842485
gcc_unreachable ();
24852486

@@ -9235,7 +9236,7 @@ gfc_conv_intrinsic_function (gfc_se * se, gfc_expr * expr)
92359236
break;
92369237

92379238
case GFC_ISYM_TEAM_NUMBER:
9238-
conv_intrinsic_team_number(se, expr);
9239+
conv_intrinsic_team_number (se, expr);
92399240
break;
92409241

92419242
case GFC_ISYM_TRANSFER:

gcc/testsuite/ChangeLog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
2018-01-19 Damian Rouson <[email protected]>
1+
2018-01-18 Damian Rouson <[email protected]>
22
Alessandro Fanfarillo <[email protected]>
33

44
Fortran 2018 teams tests.

0 commit comments

Comments
 (0)