Skip to content

Commit 911c2fb

Browse files
committed
Improve error message text
Add warning for ignored OpenMP features and improve error message for failures.
1 parent db9f884 commit 911c2fb

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

include/flang/Error/errmsg-in.n

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,13 +1510,16 @@ A DO CONCURRENT or FORALL construct or statement may not specify an index name m
15101510
.MS S 1061 "The definition of function return type of $ does not match its declaration type"
15111511
.MS S 1062 "LOCAL_INIT variable does not have an outside variable of the same name - $"
15121512
A DO CONCURRENT variable with LOCAL_INIT locality must have a host variable of the same name.
1513-
.MS S 1200 "OpenMP GPU - [$] is used, it is not implemented yet."
1513+
Starting from 1100, Reserved for OpenMP GPU
1514+
.MS S 1198 "OpenMP GPU - The feature is not implemented yet for the target device"
1515+
.MS W 1199 "OpenMP GPU - \"$\" is ignored for the target device"
1516+
.MS S 1200 "OpenMP GPU - \"$\" is used, it is not implemented yet"
15141517
.MS S 1201 "OpenMP GPU - [$] is used with [$], this usage is not implemented yet."
15151518
.MS S 1202 "OpenMP GPU - [$] is used independently than [$], this usage is not implemented yet."
15161519
.MS S 1203 "OpenMP GPU - Directive target exit data is used, map type [$] cannot be used. It should be one of 'from', 'release', or 'delete'"
15171520
.MS S 1204 "OpenMP GPU - Directive target data is used, map type [$] cannot be used. It should be one of 'to', 'from', 'tofrom', 'alloc', 'release', or 'delete'"
15181521
.MS S 1205 "OpenMP GPU - Directive target enter data is used, map type [$] cannot be used. It should be one of 'to', or 'alloc'"
1519-
.MS W 1206 "OpenMP GPU - Using [map] clause is used with an array section for $ array is not supported, mapping will be done on entire array."
1522+
.MS W 1206 "OpenMP GPU - Array sections in \"map\" clause is not implemented yet, the entire array will be mapped"
15201523
.MS S 1207 "ERROR STOP stop-code requires either a character or integer expression."
15211524
.MS S 1208 "QUIET requires a logical expression."
15221525
.MS S 1209 "ERROR STOP stop-code integer expression must be an integer of default kind."

include/flang/Error/errmsg.n

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,10 @@ In integer shift, ISHFT(I, SHIFT), absolute value of SHIFT cannot be bigger than
714714
The accelerator feature in the PGI compilers is separately licensed;
715715
that license was not found.
716716
Please update your licenses to use this feature.
717-
.MS S 1200 "OpenMP GPU - [$] is used, it is not implemented yet."
717+
Starting from 1100, Reserved for OpenMP GPU
718+
.MS S 1198 "OpenMP GPU - The feature is not implemented yet for the target device"
719+
.MS W 1199 "OpenMP GPU - \"$\" is ignored for the target device"
720+
.MS S 1200 "OpenMP GPU - \"$\" is used, it is not implemented yet"
718721
.MS S 1201 "OpenMP GPU - [$] is used with [$], this usage is not implemented yet."
719722
.MS S 1202 "OpenMP GPU - [$] is used independently than [$], this usage is not implemented yet."
720723
.MS S 1204 "OpenMP GPU - Internal compiler error. Reason: [$] at [$]"

0 commit comments

Comments
 (0)