aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorTim Keith <tkeith@nvidia.com>2020-08-06 06:47:59 -0700
committerTim Keith <tkeith@nvidia.com>2020-08-06 06:48:01 -0700
commit08c7d570d30bb9568fb2219db7b1b8a9532559dd (patch)
tree40bd618fc45707ea60dc05f8e0ea894f635bde28 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent37894ba6612bf24060f38001122946108a770bc8 (diff)
downloadllvm-08c7d570d30bb9568fb2219db7b1b8a9532559dd.zip
llvm-08c7d570d30bb9568fb2219db7b1b8a9532559dd.tar.gz
llvm-08c7d570d30bb9568fb2219db7b1b8a9532559dd.tar.bz2
[flang] Add options to control IMPLICIT NONE
Add `-fimplicit-none-type-always` to treat each specification-part like it has `IMPLICIT NONE`. This is helpful for enforcing good Fortran programming practices. We might consider something similar for `IMPLICIT NONE(EXTERNAL)` as well. Add `-fimplicit-none-type-never` to ignore occurrences of `IMPLICIT NONE` and `IMPLICIT NONE(TYPE)`. This is to handle cases like the one below, which violates the standard but it accepted by some compilers: ``` subroutine s(a, n) implicit none real :: a(n) integer :: n end ``` Differential Revision: https://reviews.llvm.org/D85363
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions