|
Revision tags: llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5, llvmorg-18.1.4, llvmorg-18.1.3, llvmorg-18.1.2, llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3, llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1, llvmorg-19-init, llvmorg-17.0.6, llvmorg-17.0.5 |
|
| #
1c91d9bd |
| 14-Nov-2023 |
Peter Klausler <35819229+klausler@users.noreply.github.com> |
[flang] Ensure that portability warnings are conditional (#71857)
Before emitting a warning message, code should check that the usage in
question should be diagnosed by calling ShouldWarn(). A fair
[flang] Ensure that portability warnings are conditional (#71857)
Before emitting a warning message, code should check that the usage in
question should be diagnosed by calling ShouldWarn(). A fair number of
sites in the code do not, and can emit portability warnings
unconditionally, which can confuse a user that hasn't asked for them
(-pedantic) and isn't terribly concerned about portability *to* other
compilers.
Add calls to ShouldWarn() or IsEnabled() around messages that need them,
and add -pedantic to tests that now require it to test their portability
messages, and add more expected message lines to those tests when
-pedantic causes other diagnostics to fire.
show more ...
|
|
Revision tags: llvmorg-17.0.4, llvmorg-17.0.3, llvmorg-17.0.2, llvmorg-17.0.1, llvmorg-17.0.0, llvmorg-17.0.0-rc4, llvmorg-17.0.0-rc3, llvmorg-17.0.0-rc2, llvmorg-17.0.0-rc1, llvmorg-18-init, llvmorg-16.0.6, llvmorg-16.0.5, llvmorg-16.0.4, llvmorg-16.0.3, llvmorg-16.0.2, llvmorg-16.0.1, llvmorg-16.0.0, llvmorg-16.0.0-rc4, llvmorg-16.0.0-rc3, llvmorg-16.0.0-rc2, llvmorg-16.0.0-rc1, llvmorg-17-init, llvmorg-15.0.7, llvmorg-15.0.6, llvmorg-15.0.5 |
|
| #
56b7db9e |
| 02-Nov-2022 |
Peter Klausler <pklausler@nvidia.com> |
[flang] Change error to portability warning
The standard does *not* require that a real or imaginary part of a complex literal constant be a scalar if it is a named constant. Downgrade a recently i
[flang] Change error to portability warning
The standard does *not* require that a real or imaginary part of a complex literal constant be a scalar if it is a named constant. Downgrade a recently installed check to a portability warning, and document it.
Differential Revision: https://reviews.llvm.org/D139046
show more ...
|
|
Revision tags: llvmorg-15.0.4, llvmorg-15.0.3 |
|
| #
7ede0b2c |
| 14-Oct-2022 |
Peter Klausler <pklausler@nvidia.com> |
[flang] Complex constructors are scalar only
The common language extension that allows arbitary expressions to be used as components in a complex constructor (x,y) -- not both constant, since that w
[flang] Complex constructors are scalar only
The common language extension that allows arbitary expressions to be used as components in a complex constructor (x,y) -- not both constant, since that would make it a complex literal constant -- still have to be scalar; it's not an elemental operation like the CMPLX() intrinsic function is.
Differential Revision: https://reviews.llvm.org/D136978
show more ...
|