- Jan 14, 2020
-
-
peter klausler authored
Original-commit: flang-compiler/f18@9c863a572b39beca7f1f3e86edb239e6d3b72d4f Reviewed-on: https://github.com/flang-compiler/f18/pull/926 Tree-same-pre-rewrite: false
-
peter klausler authored
Original-commit: flang-compiler/f18@59e5565cb87eebd2c4f44defd22484ca83777942 Reviewed-on: https://github.com/flang-compiler/f18/pull/926 Tree-same-pre-rewrite: false
-
peter klausler authored
add test Original-commit: flang-compiler/f18@91c084b698b0617da5d7592a5b1830adc5c5d84e Reviewed-on: https://github.com/flang-compiler/f18/pull/926 Tree-same-pre-rewrite: false
-
- Jan 15, 2020
-
-
Tim Keith authored
Pointer assignment semantic checks Original-commit: flang-compiler/f18@fc600af81e1a5c75d4f619bed3feb6194117b54d Reviewed-on: https://github.com/flang-compiler/f18/pull/928
-
Tim Keith authored
Call `CheckPointerAssignment()` when analyzing a pointer assignment statement. NOTE: the cases with bounds-spec and bounds-remapping are still to be done. Perform checks on pointer symbols in `check-declarations.cc`. Check for pointer to generic intrinsic in `semantics/expression.cc`. Add the other required pointer assignment checks to `pointer-assignment.cc`. Original-commit: flang-compiler/f18@3dc5fd6d9e58d1ef0efd1deefcbaa52499ad93f9 Reviewed-on: https://github.com/flang-compiler/f18/pull/928
-
Tim Keith authored
Original-commit: flang-compiler/f18@4261daf352edefabee5c97f0ed0da09280240a86 Reviewed-on: https://github.com/flang-compiler/f18/pull/928 Tree-same-pre-rewrite: false
-
Tim Keith authored
This replaces IsUnrestrictedSpecificIntrinsicFunction and returns information that allows the caller to distinguish between restricted and unrestricted intrinsics. The new case in `resolve46.f90` used to get an internal error. Original-commit: flang-compiler/f18@4cb1ee10b90bbc5e3c4899ab136fad4d1e841195 Reviewed-on: https://github.com/flang-compiler/f18/pull/928 Tree-same-pre-rewrite: false
-
Tim Keith authored
`DynamicType::AsFortran` was using mixed case for intrinic type names. Make it upper case for consistency with TYPE(...) and CHARACTER when a length is present and other error messages. Original-commit: flang-compiler/f18@e16909d67f16425b267511e5fe33f2ff72f69ee9 Reviewed-on: https://github.com/flang-compiler/f18/pull/928 Tree-same-pre-rewrite: false
-
Tim Keith authored
Create `pointer-assignment.{h,cc}` for pointer assignment checking. It doesn't share with assignment checking so it should be its own file. Move the code into semantics namespace. Original-commit: flang-compiler/f18@1658aba81f24fe3913298e76ae8b9c938bd4d248 Reviewed-on: https://github.com/flang-compiler/f18/pull/928 Tree-same-pre-rewrite: false -
Tim Keith authored
Eliminate `at_` and use location from `SemanticsContext` instead. Add and use Analyze functions for `std::optional` and `std::list`. Original-commit: flang-compiler/f18@e171029ccdb9efe874cad3a3d91adcfa200a6550 Reviewed-on: https://github.com/flang-compiler/f18/pull/928 Tree-same-pre-rewrite: false
-
Tim Keith authored
Move checks for valid array-spec to check-declarations.cc Original-commit: flang-compiler/f18@7cf6f6137d93a6faca40a835cdabaecebe02d219 Reviewed-on: https://github.com/flang-compiler/f18/pull/933
-
Tim Keith authored
At the time we finish processing an array-spec in `resolve-names.cc`, we don't know if the entity is going to be declared ALLOCATABLE later so we can't check for validity there. In the new test in `resolve58.f90` (based on issue flang-compiler/f18#930) we were reporting an error on `b` and not on `a` when it should be the reverse. The fix is to move array-spec checking to `check-declarations.cc`, after name resolution is complete. Fixes flang-compiler/f18#930. Original-commit: flang-compiler/f18@c596d2fef7628236676c1939659f4eb956e4df35 Reviewed-on: https://github.com/flang-compiler/f18/pull/933
-
Peter Klausler authored
Fix bug flang-compiler/f18#931: spurious error reported on CSHIFT Original-commit: flang-compiler/f18@6adae0b7f4196e54b874c4d0aca93c5cb2d01bd7 Reviewed-on: https://github.com/flang-compiler/f18/pull/932
-
peter klausler authored
Original-commit: flang-compiler/f18@bd9bd788652975ac11a24fd5d10197be80c78603 Reviewed-on: https://github.com/flang-compiler/f18/pull/932
-
CarolineConcatto authored
The configuration for the tests are in lit.* files. The lit tests rely on the presence of llvm-lit,FileCheck, not and count. When building LLVM add: -DLLVM_INSTALL_UTILS=On at the cmake command. LLVM_LIT is found by setting LLVM_EXTERNAL_LIT in f18 CMakeLists.txt. This patch: * Uses LLVM_EXTERNAL_LIT * Adds regression tests configurations * Adds a proof of concept regression test The regression test needs to have the Utils build in LLVM. This is done by adding: -DLLVM_INSTALL_UTILS=On to the LLVM build cmake. Signed-off-by:
Caroline Concatto <caroline.concatto@arm.com> Original-commit: flang-compiler/f18@a58c6067a1ab5cd02dfb5b6fb9919a20b960d984 Reviewed-on: https://github.com/flang-compiler/f18/pull/861
-
- Jan 14, 2020
-
-
David Truby authored
This fixes an issue where the Dump function definitions in dump.cc were relying on the forward declaration of operator<< for CharBlock which was marked inline and only present in char-block.h. This is not allowed under section 6.2.10 of the C++17 standard, and caused a compilation failure when building with clang 9 as this was inlining every use of the function and therefore not generating an outlined definition for linking. Original-commit: flang-compiler/f18@3ad75d123b666a5081540f2afedbedde930b2518 Reviewed-on: https://github.com/flang-compiler/f18/pull/916
-
- Jan 13, 2020
-
-
psteinfeld authored
Removed an unnecessary check after Tim fixed issue flang-compiler/f18#915. Original-commit: flang-compiler/f18@538a6dd5e27e3a159b84cd167f46bbbf656c8cfe Reviewed-on: https://github.com/flang-compiler/f18/pull/924
-
Pete Steinfeld authored
Original-commit: flang-compiler/f18@348b04bc1c313d5d18ebb133441967547d4c7d6d Reviewed-on: https://github.com/flang-compiler/f18/pull/924
-
- Jan 11, 2020
-
-
psteinfeld authored
Checks for DO variables passed to INTENT(OUT) dummies in functions Original-commit: flang-compiler/f18@ab8fd34a718ca93d6e621b8818cfa6c2e1e948bf Reviewed-on: https://github.com/flang-compiler/f18/pull/918
-
Pete Steinfeld authored
I added a traveral framework to find actual arguments in expressions. For arguments that are DO variables being passed to dummy arguments with INTENT(OUT), I emit an error message. For INTENT(INOUT), I emit a warning. Original-commit: flang-compiler/f18@815dbed75c2cae778b4a65022a9c1f6ad4cf3d47 Reviewed-on: https://github.com/flang-compiler/f18/pull/918
-
Tim Keith authored
Detect incorrect use of assumed-type dummy arguments Original-commit: flang-compiler/f18@b29f284325f95efbba2b9da35282b2e066f65446 Reviewed-on: https://github.com/flang-compiler/f18/pull/923
-
Tim Keith authored
Assumed-type dummy arguments can only be used as actual arguments. If they are used in other contexts it is an error. Change argument analysis to handle these differently depending on the context. `allowAssumedType` is set when the argument can be assumed-type. These expressions now all get `typedExpr` set to `nullopt`. Change `AnalyzeSectionSubscripts` to analyze all of the subscripts even if one has an error. This ensures they all get analyzed expressions (or `nullopt` in case of error). Fix a bug analyzing `BoundsRemapping`: the lower bound was analyzed twice and the upper bound not at all. These change mean that `typedExpr` is set in all known cases. Fixes flang-compiler/f18#915. Original-commit: flang-compiler/f18@679ef69905e39f39454768264059afd85b615840 Reviewed-on: https://github.com/flang-compiler/f18/pull/923
-
Gary Klimowicz authored
Minor format change to LLVM license lines Original-commit: flang-compiler/f18@9c7406324dc3768886ec8d2baf92b0d9395291be Reviewed-on: https://github.com/flang-compiler/f18/pull/922
-
Gary Klimowicz authored
Replace comment lines containing all dashes with the proper ===-----....----=== markers. Original-commit: flang-compiler/f18@a8936b0d4187a9a9ef43f9d34055a3213beeb9d2 Reviewed-on: https://github.com/flang-compiler/f18/pull/922
-
Peter Klausler authored
Dodge build problem in some Power environments Original-commit: flang-compiler/f18@5b7f08abd79d3c59723dad6e8de0568c834479e1 Reviewed-on: https://github.com/flang-compiler/f18/pull/919
-
- Jan 10, 2020
-
-
peter klausler authored
Original-commit: flang-compiler/f18@f24abf19c4aac3869459cd0984473ea3b5232d12 Reviewed-on: https://github.com/flang-compiler/f18/pull/919
-
Peter Klausler authored
Start, stop, and error routines for runtime Original-commit: flang-compiler/f18@42ff2d005242d71f80a9460c00cbcec3e8323971 Reviewed-on: https://github.com/flang-compiler/f18/pull/914
-
peter klausler authored
Define ImageTerminator as a mixin-able class Turn start.cc into main.cc Original-commit: flang-compiler/f18@cbc6225213075a0bdd778fd25721aa8388908e07 Reviewed-on: https://github.com/flang-compiler/f18/pull/914
-
Peter Klausler authored
Address complaints in bug flang-compiler/f18#912 Original-commit: flang-compiler/f18@66025c14e432ee3f2ceab9ad5176bd1c64cd147c Reviewed-on: https://github.com/flang-compiler/f18/pull/917
-
peter klausler authored
Original-commit: flang-compiler/f18@829f5647d67131af57dcb84b0ed2d63a5324900d Reviewed-on: https://github.com/flang-compiler/f18/pull/917
-
- Jan 09, 2020
-
-
Peter Klausler authored
Fold TRIM and (new intrinsic) IS_CONTIGUOUS Original-commit: flang-compiler/f18@2c6480a62dfb75884373a4fb8b00eadb2d09adf9 Reviewed-on: https://github.com/flang-compiler/f18/pull/911
-
peter klausler authored
Accept IS_CONTIGUOUS and fold it test folding is_contiguous Original-commit: flang-compiler/f18@c75a0791b14811477572c6a82a961071ed82c01e Reviewed-on: https://github.com/flang-compiler/f18/pull/911
-
- Jan 08, 2020
-
-
Peter Klausler authored
Fold more intrinsic functions Original-commit: flang-compiler/f18@4f737d4cf684fe84abaa3b44c70187f1f8b53072 Reviewed-on: https://github.com/flang-compiler/f18/pull/910
-
peter klausler authored
Fold LEN_TRIM Fold REPEAT Fix gcc build warning Fix two tests that had illegal pointers to coarrays Original-commit: flang-compiler/f18@36769996fa9559b84dda59f3f9eceee9d2269e74 Reviewed-on: https://github.com/flang-compiler/f18/pull/910
-
Peter Klausler authored
Enable semantic analysis by default Original-commit: flang-compiler/f18@26ab8745110bcd8909024bb02720cc0f23b9ed9b Reviewed-on: https://github.com/flang-compiler/f18/pull/907
-
peter klausler authored
back out -Mnolargearray default temporarily Fix C_F_POINTER(SHAPE=) argument check, it can be any kind of integer Revert default result kind of SIZE() & al. to standard by default Remove needless usage of -fdebug-semantics Original-commit: flang-compiler/f18@57058a5b163eaa90c7e0f387ea4918f9efa8184c Reviewed-on: https://github.com/flang-compiler/f18/pull/907
-
- Jan 04, 2020
-
-
Peter Klausler authored
Semantic Checks for critical construct Original-commit: flang-compiler/f18@b17ab7f7bda573d33d6ca554ef1e46144148cf57 Reviewed-on: https://github.com/flang-compiler/f18/pull/897
-
Kiran Chandramohan authored
The commit includes the following, -> The name field in DoConcurrent*Enforce classes are not used anymore. Removing the field and its collection and retrieval from DoConcurrentBodyEnforce and its usage in DoConcurrentLabelEnforce. -> DoConcurrentLabelEnforce is useful for checking that there are no branches escaping from other constructs also. For enabling use in other constructs (like critical) moving this to tools.h and renaming it as LabelEnforce. -> Checks for the constraints. -> Tests for the constaints. Original-commit: flang-compiler/f18@4b7a007ff3d4a3e519c85e960fc262bb382f3af4 Reviewed-on: https://github.com/flang-compiler/f18/pull/897
-
Peter Klausler authored
Constant folding for ANINT, NINT, FLOOR, and CEILING intrinsic functions Original-commit: flang-compiler/f18@ccb3ae517be766436e1cd7bcdcbb06d494fe614b Reviewed-on: https://github.com/flang-compiler/f18/pull/905
-
peter klausler authored
Add GetUltimate() to ResolveAssociations(), fixing a UBOUND test case with use association Fix folding of array-valued subscripts while I am in here Original-commit: flang-compiler/f18@f663d4fef4b4c561f99e8126ff3f1d5b8e868c84 Reviewed-on: https://github.com/flang-compiler/f18/pull/905
-