[all-commits] [llvm/llvm-project] f651bb: [flang] Correct interpretation of RECL=

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Jan 31 12:48:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f651bbea0692bef2249c92174796ace873fbe89a
      https://github.com/llvm/llvm-project/commit/f651bbea0692bef2249c92174796ace873fbe89a
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-01-31 (Mon, 31 Jan 2022)

  Changed paths:
    M flang/runtime/unit.cpp

  Log Message:
  -----------
  [flang] Correct interpretation of RECL=

When RECL= is set on OPEN(), ensure that it:
  1) enforces a max output record payload size
     (not including header+footer or newline), and
  2) causes padding of short output records only
     for ACCESS='DIRECT'

The previous code was causing some false overrun errors
and applying padding to sequential/stream output files.

Differential Revision: https://reviews.llvm.org/D118630




More information about the All-commits mailing list