[all-commits] [llvm/llvm-project] 44ff4d: [flang] Extension: don't require commas between mo...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Mar 1 15:16:14 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 44ff4df6debf5a8d8fd1478ed6da0e374e669a8d
      https://github.com/llvm/llvm-project/commit/44ff4df6debf5a8d8fd1478ed6da0e374e669a8d
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-03-01 (Tue, 01 Mar 2022)

  Changed paths:
    M flang/docs/Extensions.md
    M flang/runtime/format-implementation.h

  Log Message:
  -----------
  [flang] Extension: don't require commas between most edit descriptors in formats

The standard explicitly allows a comma to be omitted between a 'P'
edit descriptor and a following numeric edit descriptor (e.g., 1PE10.1),
and before and after a '/' edit descriptor, but otherwise requires them
between edit descriptors.  Most implementations, however, only require
commas where they prevent ambiguity, and accept things like 1XI10.
This extension is already assumed by the static FORMAT checker in
semantics.  Patch the runtime to behave accordingly.

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




More information about the All-commits mailing list