Skip to content

Commit 9aec253

Browse files
committed
transferred changes for parse.c
1 parent e90aa4a commit 9aec253

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

gcc/fortran/parse.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ decode_statement (void)
451451

452452
case 'c':
453453
match ("call", gfc_match_call, ST_CALL);
454+
match ("change team", gfc_match_change_team, ST_CHANGE_TEAM);
454455
match ("close", gfc_match_close, ST_CLOSE);
455456
match ("continue", gfc_match_continue, ST_CONTINUE);
456457
match ("contiguous", gfc_match_contiguous, ST_ATTR_DECL);
@@ -470,6 +471,7 @@ decode_statement (void)
470471

471472
case 'e':
472473
match ("end file", gfc_match_endfile, ST_END_FILE);
474+
match ("end team", gfc_match_end_team, ST_END_TEAM);
473475
match ("exit", gfc_match_exit, ST_EXIT);
474476
match ("else", gfc_match_else, ST_ELSE);
475477
match ("else where", gfc_match_elsewhere, ST_ELSEWHERE);
@@ -491,6 +493,7 @@ decode_statement (void)
491493
match ("fail image", gfc_match_fail_image, ST_FAIL_IMAGE);
492494
match ("final", gfc_match_final_decl, ST_FINAL);
493495
match ("flush", gfc_match_flush, ST_FLUSH);
496+
match ("form team", gfc_match_form_team, ST_FORM_TEAM);
494497
match ("format", gfc_match_format, ST_FORMAT);
495498
break;
496499

@@ -558,6 +561,7 @@ decode_statement (void)
558561
match ("sync all", gfc_match_sync_all, ST_SYNC_ALL);
559562
match ("sync images", gfc_match_sync_images, ST_SYNC_IMAGES);
560563
match ("sync memory", gfc_match_sync_memory, ST_SYNC_MEMORY);
564+
match ("sync team", gfc_match_sync_team, ST_SYNC_TEAM);
561565
break;
562566

563567
case 't':
@@ -1502,6 +1506,8 @@ next_statement (void)
15021506
case ST_OMP_TARGET_EXIT_DATA: case ST_OMP_ORDERED_DEPEND: \
15031507
case ST_ERROR_STOP: case ST_SYNC_ALL: \
15041508
case ST_SYNC_IMAGES: case ST_SYNC_MEMORY: case ST_LOCK: case ST_UNLOCK: \
1509+
case ST_FORM_TEAM: case ST_CHANGE_TEAM: \
1510+
case ST_END_TEAM: case ST_SYNC_TEAM: \
15051511
case ST_EVENT_POST: case ST_EVENT_WAIT: case ST_FAIL_IMAGE: \
15061512
case ST_OACC_UPDATE: case ST_OACC_WAIT: case ST_OACC_CACHE: \
15071513
case ST_OACC_ENTER_DATA: case ST_OACC_EXIT_DATA
@@ -1833,6 +1839,18 @@ gfc_ascii_statement (gfc_statement st)
18331839
case ST_FAIL_IMAGE:
18341840
p = "FAIL IMAGE";
18351841
break;
1842+
case ST_CHANGE_TEAM:
1843+
p = "CHANGE TEAM";
1844+
break;
1845+
case ST_END_TEAM:
1846+
p = "END TEAM";
1847+
break;
1848+
case ST_FORM_TEAM:
1849+
p = "FORM TEAM";
1850+
break;
1851+
case ST_SYNC_TEAM:
1852+
p = "SYNC TEAM";
1853+
break;
18361854
case ST_END_ASSOCIATE:
18371855
p = "END ASSOCIATE";
18381856
break;

0 commit comments

Comments
 (0)