[flang-commits] [flang] [flang][runtime] Build ISO_FORTRAN_ENV to export kind arrays as linkable symbols (PR #95388)
Michael Klemm via flang-commits
flang-commits at lists.llvm.org
Tue Jul 2 07:44:59 PDT 2024
================
@@ -0,0 +1,110 @@
+!===-- module/__fortran_bultin_kinds.f90 --=--------------------------------===!
----------------
mjklemm wrote:
When I remove the code, the compiler folds the current value `32_4` into the `iso_fortran_env.mod` file. From there on, `numeric_storage_size` always reports 32 as the storage size, regardless of compiler options.
The code removed:
```C++
if (!context.moduleFileName()) {
// Don't fold this reference until it appears in the module file
// for ISO_FORTRAN_ENV -- the value depends on the compiler options
// that might be in force.
} else {
```
https://github.com/llvm/llvm-project/pull/95388
More information about the flang-commits
mailing list