[all-commits] [llvm/llvm-project] 0f5c60: [flang] Fix edge-case I/O regressions

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Feb 1 16:28:04 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f5c60f151e1991a7880cfc5311f7b1c61ce1528
      https://github.com/llvm/llvm-project/commit/0f5c60f151e1991a7880cfc5311f7b1c61ce1528
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-02-01 (Tue, 01 Feb 2022)

  Changed paths:
    M flang/runtime/edit-input.cpp
    M flang/runtime/internal-unit.cpp

  Log Message:
  -----------
  [flang] Fix edge-case I/O regressions

A blank field in an input record that exists must be interpreted
as a zero value for numeric input editing, but advancing to a
next record that doesn't exist should leave an input variable
unmodified (and signal END=).  On internal output, blank fill
the "current record" array element even if nothing has been
written to it if it is the only record.

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




More information about the All-commits mailing list