[all-commits] [llvm/llvm-project] c7fe5e: [flang][runtime] Handle endian-swapped record head...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Aug 18 15:43:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c7fe5e83dbb4eb164b370546303b111b3a62886d
      https://github.com/llvm/llvm-project/commit/c7fe5e83dbb4eb164b370546303b111b3a62886d
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-08-18 (Thu, 18 Aug 2022)

  Changed paths:
    M flang/runtime/unit.cpp
    M flang/runtime/unit.h

  Log Message:
  -----------
  [flang][runtime] Handle endian-swapped record headers & footers on input

The runtime I/O library correctly handles endianness conversions on payload
data I/O and on the output of sequential record headers and footers, but
does not swap endianness when required when reading sequential record headers
and footers back in for READ and BACKSPACE statements.  Mea culpa.  Fix.

Fixes https://github.com/llvm/llvm-project/issues/57126

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




More information about the All-commits mailing list