[all-commits] [llvm/llvm-project] 5a9d68: [flang] Split interoperability warnings, disable s...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Tue Oct 15 14:21:09 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5a9d6841ecaf7863809a8e2f67af55a45f374d36
https://github.com/llvm/llvm-project/commit/5a9d6841ecaf7863809a8e2f67af55a45f374d36
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2024-10-15 (Tue, 15 Oct 2024)
Changed paths:
M flang/include/flang/Common/Fortran-features.h
M flang/lib/Common/Fortran-features.cpp
M flang/lib/Evaluate/intrinsics.cpp
M flang/test/Semantics/c_f_pointer.f90
M flang/test/Semantics/c_loc01.f90
Log Message:
-----------
[flang] Split interoperability warnings, disable some by default (#111922)
Type interoperability warnings current issue for intrinsic types when
their type, kind, or length do not meet the requirements for C
interoperability. This turns out to be too noisy for the case of
one-byte characters with lengths other than one when creating C pointers
from C_LOC or C_F_POINTER -- it is not uncommon for programs to use
pointers to longer character objects.
So split the interoperability warning so that the case of a known bad
character length for an otherwise interoperable type is controlled by
its own UsageWarning enumerator, and leave that usage warning off by
default. This will better fit expectations in the default case while
still showing a warning under -pedantic.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list