[all-commits] [llvm/llvm-project] 96b170: [flang][runtime] Don't write implied ENDFILE for R...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Tue Feb 20 13:41:28 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 96b17043507caec02a2ef440b369506122bdeb11
https://github.com/llvm/llvm-project/commit/96b17043507caec02a2ef440b369506122bdeb11
Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
Date: 2024-02-20 (Tue, 20 Feb 2024)
Changed paths:
M flang/runtime/unit.cpp
Log Message:
-----------
[flang][runtime] Don't write implied ENDFILE for REC=/POS= (#79637)
An implied ENDFILE record, which truncates an external file, should be
written to a sequential unit whenever the file is repositioned for a
BACKSPACE or REWIND statement if a WRITE statement has executed since
the last OPEN/BACKSPACE/REWIND.
But the REC= and POS= positioning specifiers don't apply to sequential
units (they're for direct and stream units, resp.), so don't truncate
the file when they're used.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list