[flang-commits] [flang] [flang][runtime] Build ISO_FORTRAN_ENV to export kind arrays as linkable symbols (PR #95388)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Mon Jul 1 11:47:10 PDT 2024
================
@@ -0,0 +1,110 @@
+!===-- module/__fortran_bultin_kinds.f90 --=--------------------------------===!
----------------
klausler wrote:
In `flang/lib/Evaluate/fold-integer.cpp` ca. line 1340 is the code that folds (underscore underscore) `builtin_numeric_storage`. It defers that folding today until the reference to that intrinsic function is coming from a module file, at which point the size of a default numeric storage unit must be known. If you're changing things so that `ISO_FORTRAN_ENV` is now going to be compiled with the size of a default numeric storage unit being well-defined, then you can probably just remove the code that defers the folding.
https://github.com/llvm/llvm-project/pull/95388
More information about the flang-commits
mailing list