[flang-commits] [PATCH] D130430: [flang][runtime] Reset unit frame buffer when re-opening

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Jul 25 12:18:39 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGae1d5f4d9da3: [flang][runtime] Reset unit frame buffer when re-opening (authored by klausler).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130430/new/

https://reviews.llvm.org/D130430

Files:
  flang/runtime/unit.cpp


Index: flang/runtime/unit.cpp
===================================================================
--- flang/runtime/unit.cpp
+++ flang/runtime/unit.cpp
@@ -114,6 +114,7 @@
     // Otherwise, OPEN on open unit with new FILE= implies CLOSE
     DoImpliedEndfile(handler);
     FlushOutput(handler);
+    TruncateFrame(0, handler);
     Close(CloseStatus::Keep, handler);
   }
   if (newPath.get() && newPathLength > 0) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130430.447429.patch
Type: text/x-patch
Size: 419 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220725/b2fd7222/attachment.bin>


More information about the flang-commits mailing list