llvm-capstone/flang/docs
peter klausler 4d42e16eb8 [flang] runtime: fix problems with I/O around EOF & delimited characters
When a WRITE overwrites an endfile record, we need to forget
that there was an endfile record.  When doing a BACKSPACE
after an explicit ENDFILE statement, the position afterwards
must be upon the endfile record.

Attempts to join list-directed delimited character input across
record boundaries was due to a bad reading of the standard
and has been deleted, now that the requirements are better understood.
This problem would cause a read attempt past EOF if a delimited
character input value was at the end of a record.

It turns out that delimited list-directed (and NAMELIST) character
output is required to emit contiguous doubled instances of the
delimiter character when it appears in the output value.  When
fixed-size records are being emitted, as is the case with internal
output, this is not possible when the problematic character falls
on the last position of a record.  No two other Fortran compilers
do the same thing in this situation so there is no good precedent
to follow.

Because it seems least wrong, with this patch we now emit one copy
of the delimiter as the last character of the current record and
another as the first character of the next record.  (The
second-least-wrong alternative might be to flag a runtime error,
but that seems harsh since it's not an explicit error in the standard,
and the output may not have to be usable later as input anyway.)
Consequently, the output is not suitable for use as list-directed or
NAMELIST input.

If a later standard were to clarify this case, this behavior will of
course change as needed to conform.

Differential Revision: https://reviews.llvm.org/D106695
2021-07-23 18:23:26 -07:00
..
_static
_templates [Branch-Rename] Fix some links 2021-02-01 16:43:21 +05:30
_themes/llvm-theme
ArrayComposition.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
BijectiveInternalNameUniquing.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
C++17.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
C++style.md [flang] Add clang-tidy check for braces around if 2021-06-16 09:13:53 +00:00
Calls.md [docs][flang] Fix typos 2020-09-21 11:05:58 +05:30
Character.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
CMakeLists.txt
conf.py [Flang][Docs] Fix warnings when building docs. 2020-11-10 22:24:49 +05:30
ControlFlowGraph.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
Directives.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
DoConcurrent.md [flang] Document DO CONCURRENT's problems (NFC) 2020-11-12 15:30:43 -08:00
doxygen-mainpage.dox [flang] Fix link to old repo location in doxygen mainpage. NFC. 2020-09-07 16:43:08 +01:00
doxygen.cfg.in
Extensions.md [flang] runtime: fix problems with I/O around EOF & delimited characters 2021-07-23 18:23:26 -07:00
f2018-grammar.md [flang] Correct handling of null pointer initializers 2020-11-18 13:57:25 -08:00
flang-c-style.el [Branch-Rename] Fix some links 2021-02-01 16:43:21 +05:30
FlangDriver.md [flang][docs] Add documentation for the new Flang driver 2021-07-01 08:14:54 +00:00
FortranFeatureHistory.md [flang] (NFC) Document Fortran feature history 2021-04-22 11:24:22 -07:00
FortranForCProgrammers.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
FortranIR.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
FortranLLVMTestSuite.md [flang][docs] Minor update to Fortran LLVM Tests-suite docs. 2021-06-28 10:01:29 -05:00
GettingInvolved.md [Flang][Docs] Update meeting URL 2021-07-07 10:35:35 -05:00
ImplementingASemanticCheck.md [flang] Add -fsyntax-only to f18; retain -fparse-only synonym 2021-02-03 09:01:39 -08:00
index.md [flang][docs] Initial documentation for the Fortran LLVM Test Suite. 2021-05-26 15:59:55 -05:00
Intrinsics.md [flang] Tighten rules to resolve procedure as intrinsic procedure 2020-10-26 11:25:40 +01:00
IORuntimeInternals.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
LabelResolution.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
ModFiles.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
OpenMP-4.5-grammar.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
OpenMP-semantics.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
OptionComparison.md Update OptionComparison.md 2020-11-20 10:33:21 -08:00
Overview.md [flang] Add -fsyntax-only to f18; retain -fparse-only synonym 2021-02-03 09:01:39 -08:00
ParserCombinators.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
Parsing.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
Preprocessing.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
PullRequestChecklist.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
ReleaseNotes.md [flang] Convert release notes to markdown 2020-09-08 08:47:33 +01:00
RuntimeDescriptor.md [flang] Add new documentation main page 2020-09-11 14:19:51 +01:00
RuntimeTypeInfo.md [flang] Implement derived type description table encoding 2020-12-08 10:26:58 -08:00
Semantics.md [flang] Improve initializer semantics, esp. for component default values 2020-12-07 14:40:41 -08:00