[all-commits] [llvm/llvm-project] c7f4c3: [flang] Make NEWUNIT= use a range suitable for INT...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Jan 31 15:20:37 PST 2022


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

  Changed paths:
    M flang/runtime/io-api.cpp
    M flang/runtime/unit-map.cpp
    M flang/runtime/unit-map.h
    M flang/runtime/unit.h

  Log Message:
  -----------
  [flang] Make NEWUNIT= use a range suitable for INTEGER(KIND=1) and recycle unit numbers

Use a bit-set to manage runtime-generated I/O unit numbers, recycle
them after they're closed, and use a range of values that fits in
a minimal-sized integer.

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




More information about the All-commits mailing list