Other compilers include the logical default also with the
default-integer-8 setting. This patch does the same for
flang.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
We have a request for supporting from an internal team that relies on this feature. They pointed to the following relevant documentation of other compilers. I don't remember whether we have discussed this or whether this was left out while adding the options.
- Gfortran: -fdefault-integer-8 Set the default integer and logical types to an 8 byte wide type.
https://gcc.gnu.org/onlinedocs/gfortran/Fortran-Dialect-Options.html
- The nvfortran documentation has i8 modifying logicals.
https://docs.nvidia.com/hpc-sdk/compilers/hpc-compilers-ref-guide/#itwo-ifour-ieight
- Classic Flang option : -fdefault-integer-8 Treat INTEGER and LOGICAL as INTEGER*8 and LOGICAL*8
https://github.com/flang-compiler/flang#compiler-options
- The integer-size option of Intel also seem to behave the same for logicals.