[flang][runtime] Don't pad CHARACTER input at end of record unless PAD='YES'
authorPeter Klausler <pklausler@nvidia.com>
Wed, 27 Apr 2022 20:28:59 +0000 (13:28 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Mon, 9 May 2022 19:39:43 +0000 (12:39 -0700)
commitcea8b8a72d877a796c1e97fca2adae8a85bb36a1
treec73bbbc248099857af203d6212293cdac3ce8e36
parent2f31b4b10a1ab3ec937fbbead55b66b8dfbb0934
[flang][runtime] Don't pad CHARACTER input at end of record unless PAD='YES'

When formatted CHARACTER input runs into the end of an input record,
the runtime usually fills the remainder of the variable with spaces,
but this should be conditional, and not done when PAD='NO'.

And while here, add some better comments to two members of connection.h
to make their non-obvious relationship more clear.

Differential Revision: https://reviews.llvm.org/D125053
flang/runtime/connection.h
flang/runtime/edit-input.cpp
flang/runtime/io-api.cpp
flang/unittests/Runtime/ExternalIOTest.cpp