[flang] Fix "non-advancing" I/O, support $ in FORMAT
authorpeter klausler <pklausler@nvidia.com>
Mon, 28 Jun 2021 18:41:04 +0000 (11:41 -0700)
committerpeter klausler <pklausler@nvidia.com>
Mon, 28 Jun 2021 19:18:25 +0000 (12:18 -0700)
commitcd0a1226b50081e86eb75a89d01e8782423971a0
tree14cf9e33bf766837d74846da48a8ae1662b9926d
parente837ce2a32369b2e9e8e5d60270c072c7dd63827
[flang] Fix "non-advancing" I/O, support $ in FORMAT

Non-advancing I/O was failing; ExternalFileUnit was losing
track of what writes had been committed to the file.  Fixed.
Also, support the common extension of $ and \ in a FORMAT
as being equivalent to ADVANCE=NO.

Differential Revision: https://reviews.llvm.org/D105046
flang/runtime/connection.h
flang/runtime/format-implementation.h
flang/runtime/format.h
flang/runtime/io-api.cpp
flang/runtime/io-stmt.cpp
flang/runtime/io-stmt.h
flang/runtime/unit-map.cpp
flang/runtime/unit.cpp
flang/runtime/unit.h