This is an archive of the discontinued LLVM Phabricator instance.

[flang] Change C889 from error into warning
ClosedPublic

Authored by peixin on Jun 14 2022, 5:19 AM.

Details

Summary

This constraint is used in OMP2012 benchmark, and other compilers do not
enforce it. Change it into one warning. This addresses the issue
https://github.com/llvm/llvm-project/issues/56003.

Diff Detail

Event Timeline

peixin created this revision.Jun 14 2022, 5:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 5:19 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
peixin requested review of this revision.Jun 14 2022, 5:19 AM

LGTM. This will help make progress with SpecOMP testing for the OpenMP team. Also, other compilers do not enforce it and gfortran gives a warning.

You can submit it after a day if there are no further requests for changes.

This revision is now accepted and ready to land.Jun 14 2022, 5:24 AM

LGTM. This will help make progress with SpecOMP testing for the OpenMP team. Also, other compilers do not enforce it and gfortran gives a warning.

You can submit it after a day if there are no further requests for changes.

OK. Thanks.

If no other compiler enforces this useless constraint, then there is no portability concern.

peixin updated this revision to Diff 436991.Jun 14 2022, 6:16 PM
peixin retitled this revision from [flang] Change C889 from error into portability warning to [flang] Change C889 from error into warning.
peixin edited the summary of this revision. (Show Details)

Considering gfortran has warnings, change the portability warning into warning.

peixin updated this revision to Diff 437048.Jun 14 2022, 11:45 PM

Use _warn_en_US.

This revision was automatically updated to reflect the committed changes.