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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
| Paths 
 |  Differential  D118651  
[flang] Make NEWUNIT= use a range suitable for INTEGER(KIND=1) and recycle unit numbers ClosedPublic Authored by klausler on Jan 31 2022, 1:36 PM. 
Details Summary Use a bit-set to manage runtime-generated I/O unit numbers, recycle 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Jan 31 2022, 1:46 PM This revision was landed with ongoing or failed builds.Jan 31 2022, 3:20 PM Closed by commit rGc7f4c333af2b: [flang] Make NEWUNIT= use a range suitable for INTEGER(KIND=1) and recycle unit… (authored by klausler).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 404753 flang/runtime/io-api.cpp
 flang/runtime/unit-map.h
 flang/runtime/unit-map.cpp
 flang/runtime/unit.h
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||