This is an archive of the discontinued LLVM Phabricator instance.

[flang] Give explicit convert= specifiers precedence over FORT_CONVERT
ClosedPublic

Authored by jpenix-quic on Sep 2 2022, 3:13 PM.

Details

Summary

Currently, the FORT_CONVERT environment variable has the highest priority when
setting the endianness conversion for unformatted files. In discussing the
appropriate priority for the fconvert option, convert specifiers were decided
to take highest priority.

This patch also initializes the open statement convert state to unknown
to disambiguate cases where the convert specifier was not provided from
cases where convert=native was set. This makes it possible to defer to the
environment setting where appropriate.

Diff Detail

Event Timeline

jpenix-quic created this revision.Sep 2 2022, 3:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 2 2022, 3:13 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
jpenix-quic requested review of this revision.Sep 2 2022, 3:13 PM
klausler accepted this revision.Sep 19 2022, 9:25 AM
This revision is now accepted and ready to land.Sep 19 2022, 9:25 AM
peixin accepted this revision.Sep 19 2022, 6:05 PM