Skip to content

Commit

Permalink
Correct the spelling of LOCAL_INIT clauses on DO CONCURRENT statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
klausler committed Oct 2, 2018
1 parent ab700cf commit bfc869a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion documentation/f2018-grammar.txt
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ R1127 concurrent-limit -> scalar-int-expr
R1128 concurrent-step -> scalar-int-expr
R1129 concurrent-locality -> [locality-spec]...
R1130 locality-spec ->
LOCAL ( variable-name-list ) | LOCAL INIT ( variable-name-list ) |
LOCAL ( variable-name-list ) | LOCAL_INIT ( variable-name-list ) |
SHARED ( variable-name-list ) | DEFAULT ( NONE )
R1131 end-do -> end-do-stmt | continue-stmt
R1132 end-do-stmt -> END DO [do-construct-name]
Expand Down
4 changes: 2 additions & 2 deletions lib/parser/grammar.h
Original file line number Diff line number Diff line change
Expand Up @@ -2137,12 +2137,12 @@ TYPE_PARSER(construct<ConcurrentControl>(name / "=", scalarIntExpr / ":",
scalarIntExpr, maybe(":" >> scalarIntExpr)))

// R1130 locality-spec ->
// LOCAL ( variable-name-list ) | LOCAL INIT ( variable-name-list ) |
// LOCAL ( variable-name-list ) | LOCAL_INIT ( variable-name-list ) |
// SHARED ( variable-name-list ) | DEFAULT ( NONE )
TYPE_PARSER(construct<LocalitySpec>(construct<LocalitySpec::Local>(
"LOCAL" >> parenthesized(listOfNames))) ||
construct<LocalitySpec>(construct<LocalitySpec::LocalInit>(
"LOCAL INIT"_sptok >> parenthesized(listOfNames))) ||
"LOCAL_INIT"_sptok >> parenthesized(listOfNames))) ||
construct<LocalitySpec>(construct<LocalitySpec::Shared>(
"SHARED" >> parenthesized(listOfNames))) ||
construct<LocalitySpec>(
Expand Down
2 changes: 1 addition & 1 deletion lib/parser/parse-tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -2153,7 +2153,7 @@ struct ConcurrentHeader {
};

// R1130 locality-spec ->
// LOCAL ( variable-name-list ) | LOCAL INIT ( variable-name-list ) |
// LOCAL ( variable-name-list ) | LOCAL_INIT ( variable-name-list ) |
// SHARED ( variable-name-list ) | DEFAULT ( NONE )
struct LocalitySpec {
UNION_CLASS_BOILERPLATE(LocalitySpec);
Expand Down
2 changes: 1 addition & 1 deletion lib/parser/unparse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ class UnparseVisitor {
Word("LOCAL("), Walk(x.v, ", "), Put(')');
}
void Unparse(const LocalitySpec::LocalInit &x) {
Word("LOCAL INIT("), Walk(x.v, ", "), Put(')');
Word("LOCAL_INIT("), Walk(x.v, ", "), Put(')');
}
void Unparse(const LocalitySpec::Shared &x) {
Word("SHARED("), Walk(x.v, ", "), Put(')');
Expand Down

0 comments on commit bfc869a

Please sign in to comment.