Skip to content

[Fortran/gfortran] Better handling of unsupported gfortran options #250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tarunprabhu
Copy link
Contributor

@tarunprabhu tarunprabhu commented May 20, 2025

A number of tests use gfortran-specific options which are either not supported in flang, or for which a suitable equivalent has not yet been enabled. These options used to be filtered out in CMakeLists.txt when configuring the test suite. This has been moved to the test configuration script to allow for more flexibility (since cmake is a terrible language in which to do anything even remotely sophisticated).

Doing this has allowed us to perform wildcard matches for options that expose gfortran's internal structure which is obviously not relevant for flang. In the future, we do not have to constantly update the filter with these options. We can also distinguish between the option name and its value, so we can filter simply based on the option spelling.

The test configuration files have been regenerated after this change. Some tests fail with this updated configuration and they have been disabled.


Notes for reviewers:

A number of tests use gfortran-specific options which are either not supported
in flang, or for which a suitable equivalent has not yet been enabled. These
options used to be filtered out in CMakeLists.txt when configuring the test
suite. This has been moved to the test configuration script to allow for more
flexibility (since cmake is a terrible language in which to do anything even
remotely sophisticated).

Doing this has allowed us to perform wildcard matches for options that expose
gfortran's internal structure which is obviously not relevant for flang. This
means that in the future, we do not have to constantly update the filter with
these options. We can now also distinguish between the option name and its
value, so we can filter simply based on the option spelling.

The test configuration files have been regenerated after this change. Some
tests fail with this updated configuration and they have been disabled.
Copy link
Contributor

@tblah tblah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me and this passes on aarch64 for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants