[flang-commits] [PATCH] D124547: [flang][runtime] Support B/O/Z editing of CHARACTER

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Apr 27 11:39:03 PDT 2022


klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

This is a common extension, though semantics differ across
compilers.  I've chosen to interpret the CHARACTER data
as if it were an arbitrary-precision integer value and
format or read it as such.  This matches Intel's compilers
and nvfortran.  (GNU Fortran can't handle lengths > 1 and XLF
seems to get the enddianness wrong.)

This patch generalizes the previous implementations of
B/O/Z input and output so that they'll work for arbitrary data
in memory, and then uses them for all B/O/Z input/output,
including (now) CHARACTER.


https://reviews.llvm.org/D124547

Files:
  flang/runtime/edit-input.cpp
  flang/runtime/edit-output.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124547.425584.patch
Type: text/x-patch
Size: 11325 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220427/08592ff4/attachment-0001.bin>


More information about the flang-commits mailing list