This is an archive of the discontinued LLVM Phabricator instance.

[Fortran/UnitTests][NFC] Remove reference to flang-experimental-exec
ClosedPublic

Authored by tarunprabhu on Jun 22 2023, 7:12 AM.

Details

Summary

The -flang-experimental-exec flang is no longer needed when configuring the test suite.

Diff Detail

Repository
rT test-suite

Event Timeline

tarunprabhu created this revision.Jun 22 2023, 7:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 7:12 AM
tarunprabhu requested review of this revision.Jun 22 2023, 7:12 AM

What about the other occurences of this flag?

gfortran/CMakeLists.txt:# If the test suite was configured by adding -flang-experimental-exec, remove
gfortran/CMakeLists.txt:# NOTE: This should be removed once the -flang-experimental-exec flag is no
gfortran/CMakeLists.txt:string(REPLACE "-flang-experimental-exec" "" TMP_FFLAGS "${CMAKE_Fortran_FLAGS}")
gfortran/CMakeLists.txt:  # NOTE: This should be removed when the -flang-experimental-exec flag is no
gfortran/CMakeLists.txt:  target_link_options(${test_target} PRIVATE -flang-experimental-exec)
gfortran/README.md:As of 18-Apr-2023, the `-flang-experimental-exec` flag may need to be used when
gfortran/README.md:      -DCMAKE_Fortran_FLAGS=-flang-experimental-exec \
gfortran/torture/compile/CMakeLists.txt:  # At some point, the -flang-experimental-exec flag will be removed.
gfortran/torture/compile/CMakeLists.txt:  target_link_options(${Dummy} PUBLIC "-flang-experimental-exec")

I had incorporated those changes into the other patch which enables the gfortran OpenMP "compile" tests but it just occurred to me that the buildbots will likely have broken so those would need to go in separately anyway. I'll update this patch to get rid of all the references.

tarunprabhu added reviewers: luporl, sscalpone.

Remove all references to -flang-experimental-exec. The first draft of this patch removed only those references that were not removed by this, but it is probably better to remove everything here because the buildbots are likely to be broken as a result of this change, so fixing this quicker is better.

luporl accepted this revision.Jun 22 2023, 1:01 PM

LGTM. I agree that it's better to commit this quicker, as there are several broken build bots.
E.g.:
https://lab.llvm.org/buildbot/#/builders/176
https://lab.llvm.org/buildbot/#/builders/179
https://lab.llvm.org/buildbot/#/builders/198

This revision is now accepted and ready to land.Jun 22 2023, 1:01 PM