Skip to content

Commit 0479dc0

Browse files
authored
Merge pull request #600 from ThePortlandGroup/nv_stage
Pull 2018-10-17T05-49 Recent NVIDIA Changes
2 parents 1dce76d + ce7cceb commit 0479dc0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+2838
-45
lines changed

include/flang/Error/errmsg-in.n

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,3 +1470,41 @@ Pragma operator errors.
14701470
.MS S 1013 "Static Threadprivate variables are not supported - $"
14711471
.MS S 1014 "Global Threadprivate variables are not supported - $"
14721472
.MS S 1015 "Cannot access private intrinsic - $"
1473+
.MS S 1042 "$ mask expression must be scalar"
1474+
A DO CONCURRENT or FORALL mask expression must be scalar.
1475+
.MS S 1043 "DO CONCURRENT $ references construct variable $"
1476+
A DO CONCURRENT limit or step control expression may not reference an index
1477+
name or LOCAL name. A DO CONCURRENT mask expression may not reference a
1478+
LOCAL name.
1479+
.MS S 1044 "Invalid DO CONCURRENT locality spec variable $"
1480+
A name in a DO CONCURRENT locality spec must be a valid variable name in the containing scope.
1481+
.MS S 1045 "DO CONCURRENT index name $ may not appear in a locality spec"
1482+
.MS S 1046 "Variable $ has multiple DO CONCURRENT locality spec references"
1483+
.MS S 1047 "Multiple DO CONCURRENT DEFAULT(NONE) locality specs"
1484+
.MS S 1048 "LOCAL/LOCAL_INIT variable $ $"
1485+
A DO CONCURRENT LOCAL or LOCAL_INIT variable must not have the ALLOCATABLE,
1486+
INTENT (IN), or OPTIONAL attribute, must not be of finalizable type, must
1487+
not be a nonpointer polymorphic dummy argument, must not be a an assumed-size
1488+
array, and must be permitted to appear in a variable definition context.
1489+
.MS S 1049 "Variable $ is not in a DO CONCURRENT locality list"
1490+
When DEFAULT(NONE) is specified for a DO CONCURRENT loop, construct variables and variables from containing scopes must appear in a locality spec.
1491+
.MS S 1050 "$ DO CONCURRENT construct"
1492+
A DO CONCURRENT construct may not contain a RETURN, EXIT, GOTO, or other branch
1493+
out of the construct. A CYCLE statement is permitted.
1494+
.MS S 1051 "DO CONCURRENT polymorphic variable deallocation - $"
1495+
A DO CONCURRENT construct must not contain a statement that might result in
1496+
the deallocation of a polymorphic variable.
1497+
.MS S 1052 "$ call in DO CONCURRENT construct"
1498+
A DO CONCURRENT construct may not contain a call to IEEE_GET_FLAG,
1499+
IEEE_SET_HALTING_MODE, or IEEE_GET_HALTING_MODE from intrinsic module
1500+
IEEE_EXCEPTIONS.
1501+
.MS S 1053 "Duplicate $ index name"
1502+
A DO CONCURRENT or FORALL construct or statement may not specify an index name multiple times.
1503+
.MS W 1054 "Duplicate subprogram prefix $ is used"
1504+
.MS S 1055 "MODULE prefix cannot be inside an abstract interface"
1505+
.MS S 1056 "MODULE prefix is only allowed for subprograms that were declared as separate module procedures"
1506+
.MS S 1057 "Definition argument name $ does not match declaration argument name $"
1507+
.MS S 1058 "The type of definition argument $ does not match its declaration type"
1508+
.MS S 1059 "The definition of subprogram $ does not have the same number of arguments as its declaration"
1509+
.MS S 1060 "The $ of the definition and declaration of subprogram $ must match"
1510+
.MS S 1061 "The definition of function return type of $ does not match its declaration type"

test/f90_correct/inc/fs23626.mk

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
build:
16+
@echo ------------------------------------ building test $(TEST)
17+
$(FC) $(FFLAGS) $(LDFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
18+
19+
run:
20+
$(TEST).$(EXE)
21+
22+
verify: ;
23+
24+

test/f90_correct/inc/fs25878_a.mk

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
build:
16+
@echo ------------------------------------ building test $(TEST)
17+
$(FC) $(FFLAGS) $(LDFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXESUFFIX)
18+
19+
run: $(TEST).$(EXESUFFIX)
20+
@echo ------------------------------------ executing test $(TEST)
21+
$(TEST).$(EXESUFFIX)
22+
23+
verify:
24+
@echo PASS

test/f90_correct/inc/fs25878_b.mk

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
build:
16+
@echo ------------------------------------ building test $(TEST)
17+
$(FC) $(FFLAGS) $(LDFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXESUFFIX)
18+
19+
run: $(TEST).$(EXESUFFIX)
20+
@echo ------------------------------------ executing test $(TEST)
21+
$(TEST).$(EXESUFFIX)
22+
23+
verify:
24+
@echo PASS

test/f90_correct/inc/fs26026.mk

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
build:
16+
@echo ------------------------------------- building test $@
17+
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
18+
19+
run:
20+
@echo ------------------------------------ executing test $@
21+
./$(TEST).$(EXE)
22+
23+
verify:
24+
@echo ------------------------------------ verifying
25+
@echo test should have printed verification above
26+

test/f90_correct/inc/submod01.mk

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
build:
16+
@echo ------------------------------------- building test $@
17+
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
18+
19+
run:
20+
@echo ------------------------------------ executing test $@
21+
./$(TEST).$(EXE)
22+
23+
verify: ;

test/f90_correct/inc/submod02.mk

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
build:
16+
@echo ------------------------------------- building test $@
17+
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
18+
19+
run:
20+
@echo ------------------------------------ executing test $@
21+
./$(TEST).$(EXE)
22+
23+
verify: ;

test/f90_correct/inc/submod03_a.mk

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
build:
16+
@echo ------------------------------------- building test $@
17+
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
18+
19+
run:
20+
@echo ------------------------------------ executing test $@
21+
./$(TEST).$(EXE)
22+
23+
verify: ;

test/f90_correct/inc/submod03_b.mk

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
build:
16+
@echo ------------------------------------- building test $@
17+
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
18+
19+
run:
20+
@echo ------------------------------------ executing test $@
21+
./$(TEST).$(EXE)
22+
23+
verify: ;

test/f90_correct/inc/submod04.mk

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
build:
16+
@echo ------------------------------------- building test $@
17+
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
18+
19+
run:
20+
@echo ------------------------------------ executing test $@
21+
./$(TEST).$(EXE)
22+
23+
verify: ;

0 commit comments

Comments
 (0)