- Jan 11, 2020
-
-
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
-
Peter Klausler authored
Another attempt to fix bug flang-compiler/f18#877 Original-commit: flang-compiler/f18@a4540324a32d60cd5dd82f765256b1e6d57d9504 Reviewed-on: https://github.com/flang-compiler/f18/pull/906
-
peter klausler authored
Original-commit: flang-compiler/f18@2ad2330cda59459ccfe63a62f1f944a6151f436c Reviewed-on: https://github.com/flang-compiler/f18/pull/906
-
Tim Keith authored
Add analyzed form of pointer assignment Original-commit: flang-compiler/f18@1f6cc18c7c1252026b2b673b138cefedd87b2a04 Reviewed-on: https://github.com/flang-compiler/f18/pull/904
-
Tim Keith authored
Add `typedAssignment` to `PointerAssignmentStmt` parse tree node and extend `evaluate::Assignment` to include pointer assignment, including analyzed bounds. Analyze pointer assignments and fill those in. Emit them in unparsed output and parse tree dump when present. Change assignment checking to use analyzed expressions and assignments rather than calling AnalyzeExpr. Check bounds in pointer assignments for impure function calls in FORALL context. Add `Fold` convenience function to `ExpressionAnalyzer`. Original-commit: flang-compiler/f18@140c983423d3f49fad66bc67317af3684e96ba1b Reviewed-on: https://github.com/flang-compiler/f18/pull/904
-
Tim Keith authored
Replace `std::set<const Symbol *>` with `SymbolSet` from `symbol.h`. Original-commit: flang-compiler/f18@78e3ff33cc21999a73a061daaf772ae5f14c8e02 Reviewed-on: https://github.com/flang-compiler/f18/pull/904 Tree-same-pre-rewrite: false
-
Tim Keith authored
As it was implemented we weren't detecting non-constant kind parameters in the integer-type-spec. The fix is just to walk the integer-type-spec like was do any other one. Also, there is not need for ResolveControlExpressions -- all it does is walk that part of the parse tree. Original-commit: flang-compiler/f18@8c0d890eb8852e460ea247c0c0e873dfe2da0200 Reviewed-on: https://github.com/flang-compiler/f18/pull/904 Tree-same-pre-rewrite: false
-
Tim Keith authored
That seems to be what was intended and it provides for better checking of errors. Original-commit: flang-compiler/f18@99376d77a07aa04173bd20dcc45d08b76cae4a73 Reviewed-on: https://github.com/flang-compiler/f18/pull/904 Tree-same-pre-rewrite: false
-
Peter Klausler authored
Remove needless std::move() that breaks clang build Original-commit: flang-compiler/f18@85f5cbecf16642b7be7416c1f6d83f85f8fbc9f2 Reviewed-on: https://github.com/flang-compiler/f18/pull/903
-
peter klausler authored
Add the std::move() to where it should have been Original-commit: flang-compiler/f18@54fe9b39a1551313da06e5c40ca2aa523288292d Reviewed-on: https://github.com/flang-compiler/f18/pull/903
-
psteinfeld authored
Check for passing DO variables to OUT arguments in a CALL statement Original-commit: flang-compiler/f18@27220661c3ac15c3135510b551458bc01a0a8ba5 Reviewed-on: https://github.com/flang-compiler/f18/pull/902
-
Pete Steinfeld authored
I added code to save the INTENT of a dummy argument in the checked expression of the actual argument. When processing a CallStmt, I then retrieve the ProcedureRef, which contains a list of the checked ActualArguments. I then traverse this list looking for actual arguments that are active DO variable that are being passed to dummy arguments whose INTENT is either OUT or INOUT. For OUT dummies, I put out an error message and warn for INOUT dummies. Original-commit: flang-compiler/f18@0ff1d264284c51a0142df0b785eb5f6409e8ad51 Reviewed-on: https://github.com/flang-compiler/f18/pull/902
-
- Jan 03, 2020
-
-
Peter Klausler authored
Fix type-bound user-defined operators Original-commit: flang-compiler/f18@db63c87fb0ba8784c6b16cef80d6ae715900fa67 Reviewed-on: https://github.com/flang-compiler/f18/pull/901
-
peter klausler authored
Pre-review clean-up Original-commit: flang-compiler/f18@1d4e85563aad3fc28c4decdc27f4c52af229c3d4 Reviewed-on: https://github.com/flang-compiler/f18/pull/901
-
Tim Keith authored
Add .mod file dependencies Original-commit: flang-compiler/f18@74617f1d489ad211a81b91881ab8d4c199860fd8 Reviewed-on: https://github.com/flang-compiler/f18/pull/899
-
- Jan 01, 2020
-
-
Tim Keith authored
Make compilation of other predefined module files depend on __fortran_builtins.mod. Currently only iso_c_binding.f90 and iso_fortran_env.f90 depend on it but others could in the future. Create the .f18.mod files by copying from the .mod files so that we don't have to worry about dependencies for those. Original-commit: flang-compiler/f18@8209ad3d32909573e9ef72327ba61932f8967587 Reviewed-on: https://github.com/flang-compiler/f18/pull/899
-
Peter Klausler authored
Partition fold.cc to reduce build-time memory requirements Original-commit: flang-compiler/f18@372c82219a7b6cd355bf6d785b81daaf39790ac4 Reviewed-on: https://github.com/flang-compiler/f18/pull/900
-
peter klausler authored
Original-commit: flang-compiler/f18@25cb92e9903dfd97a8b5b8ecd2b60ce22ecd3659 Reviewed-on: https://github.com/flang-compiler/f18/pull/900
-
peter klausler authored
Original-commit: flang-compiler/f18@89499243510d44d94ac47d41db34c0e6822801b0 Reviewed-on: https://github.com/flang-compiler/f18/pull/900 Tree-same-pre-rewrite: false
-
peter klausler authored
Original-commit: flang-compiler/f18@6e4aca113a7d744af8b2566a52e270d59743084e Reviewed-on: https://github.com/flang-compiler/f18/pull/900 Tree-same-pre-rewrite: false
-