- Mar 10, 2020
-
-
Tim Keith authored
If the pure context check succeeds, call `WhyNotModifiable` to verify the LHS can be modified. Detect assignment to whole assumed-size array. Change `IsVariable` to return false for a parameter or a component or array reference whose base it a parameter. When analyzing an assignment statement, report an error if the LHS is a constant expression. Otherwise it might get folded and when we detect the problem later the error will be confusing. Handle Substring on LHS of assignment. Change ExtractDataRef and IsVariable to work on a Substring. Fix IsImpliedShape and IsAssumedSize predicates in ArraySpec. Fix C709 check in check-declarations.cpp. Original-commit: flang-compiler/f18@f2d2657aab051b938ec4e4702926aadb436c19aa Reviewed-on: https://github.com/flang-compiler/f18/pull/1050
-
Tim Keith authored
Have CheckDefinabilityInPureScope and CheckCopyabilityInPureScope return false when their checks fail and report errors so that we will be able to avoid reporting extra errors in those cases. Original-commit: flang-compiler/f18@305a3470e572161483b0f430514b77ba19f932ea Reviewed-on: https://github.com/flang-compiler/f18/pull/1050 Tree-same-pre-rewrite: false
-
Tim Keith authored
One overload of WhyNotModifiable returned an optional message while the other returns a unique_ptr. Change the latter to be consistent with the former and other message-returning functions in this file. Also, reorder the if clauses to reduce the level of indentation. Original-commit: flang-compiler/f18@864e9cfc7ee98e3646052fdc757943011d641691 Reviewed-on: https://github.com/flang-compiler/f18/pull/1050 Tree-same-pre-rewrite: false
-
Tim Keith authored
As we loop through the Components, maintain a pointer to the current DataRef rather than moving it. This is more efficient and the previous behavior caused illegal memory accesses. Original-commit: flang-compiler/f18@cede2971ff863b8dd6a2c8727f6566a444ac7a52 Reviewed-on: https://github.com/flang-compiler/f18/pull/1050 Tree-same-pre-rewrite: false
-
- Mar 06, 2020
-
-
Steve Scalpone authored
https://github.com/flang-compiler/f18/issues/990 Original-commit: flang-compiler/f18@d971333025bb316529d233528a725fcc726f6615 Reviewed-on: https://github.com/flang-compiler/f18/pull/1010
-
- Mar 05, 2020
-
-
Steve Scalpone authored
* Change README to refer to LLVM_BUILD_DIR. LLVM_INSTALL_TOOLS doesn't to install llvm-lit. However pointing to the cmake file in the build directory works fine, and lit and FileCheck will be picked up correctly this way. Original-commit: flang-compiler/f18@3cbe344f82a0898c9e20b6718d5f80d52670838b Reviewed-on: https://github.com/flang-compiler/f18/pull/1033
-
Steve Scalpone authored
The struct Temp is used in the function call createUniqueFile which only takes in a file descriptor instead of a file handler. In Unix these are the same thing, but in Windows they are different. Therefore, the type of the member of struct Temp is changed from file handler to file descriptor and when closing the file the file descriptor is converted to a file handler. Original-commit: flang-compiler/f18@a8edb328f717305143ac827132c6d6f45e6e11b9 Reviewed-on: https://github.com/flang-compiler/f18/pull/1036
-
Steve Scalpone authored
* Use std::mutex for portability. Original-commit: flang-compiler/f18@a9a725eb9d2c39a203f4b4f55f1e03c5e17f6cf7 Reviewed-on: https://github.com/flang-compiler/f18/pull/1006
-
Steve Scalpone authored
Original-commit: flang-compiler/f18@0e32eebf7fec8cd07ab3280565799cfbf2ca55e2 Reviewed-on: https://github.com/flang-compiler/f18/pull/1028
-
Steve Scalpone authored
* Don't link to libm on windows * Don't link to libm in Unix as well Original-commit: flang-compiler/f18@a807862ab85f2d2206f8fa77d927b0e110513620 Reviewed-on: https://github.com/flang-compiler/f18/pull/1038
-
Eric Schweitz authored
Link against zlib when LLVM does. Original-commit: flang-compiler/f18@8b0a473069cb3691d604f72d7f9a5200aa7f1c01 Reviewed-on: https://github.com/flang-compiler/f18/pull/1043
-
- Mar 02, 2020
-
-
David Truby authored
Original-commit: flang-compiler/f18@2260abe4c27a76e374b286df072e303aa9ea1418 Reviewed-on: https://github.com/flang-compiler/f18/pull/1043
-
- Mar 04, 2020
-
-
Tim Keith authored
Improve checking of structure constructor keywords Original-commit: flang-compiler/f18@c80c72d6f96e75c9b6d12c12b813a0922c6d39ef Reviewed-on: https://github.com/flang-compiler/f18/pull/1046
-
Tim Keith authored
When a misparsed FunctionReference was converted to a StructureConstructor, the components accessed were not checked for accessibility. The conversion happens in expression analysis so that where the accessibity must be checked. So move `CheckAccessibleComponent` to `tools.h` so that it can be shared by `resolve-names.cpp` and `expression.cpp`. Add FindModuleContaining to help implement this and use it other places. Check that an access-spec can only appear in a module. Remove some unnecessary "semantics::" qualifiers. Original-commit: flang-compiler/f18@99ce156e49ec0847ce42a6d10f0a62664714092b Reviewed-on: https://github.com/flang-compiler/f18/pull/1046
-
- Mar 03, 2020
-
-
Tim Keith authored
Improve array element errors Original-commit: flang-compiler/f18@899ef78d6aac3a1c5e8264100165dcc2521684c6 Reviewed-on: https://github.com/flang-compiler/f18/pull/1039
-
Tim Keith authored
When something is parsed as an array element it was sometimes intended to be a function call or structure constructor. So if the base name is not found the errors can be confusing. This is an attempt to improve them. When the subscript list is empty, it was probably meant to be a function call, so report that the name is not a function. If the base is a scalar but there are subscripts, report that it is not an array. Original-commit: flang-compiler/f18@e2fd5333ff1bb1e8e88cbf35028654bcf70fe9e9 Reviewed-on: https://github.com/flang-compiler/f18/pull/1039
-
Tim Keith authored
Expression analysis on DataStmtConstant Original-commit: flang-compiler/f18@1611fd8e9e237dc86266b146309931428d228ace Reviewed-on: https://github.com/flang-compiler/f18/pull/1044
-
- Mar 02, 2020
-
-
Tim Keith authored
Data statements contains expressions but they are not wrapped in one of the kinds of parse tree nodes that are analyzed, like `parser::Expr`. So potential errors were not discovered. Change `ExprChecker` to handle `DataStmtConstant` and analyze any expressions that are contained in it. Note that the analyzed form of the expression is not yet saved in the parse tree. Original-commit: flang-compiler/f18@8bdaf0a521f6630ec2c369b2c41484eff4803d6e Reviewed-on: https://github.com/flang-compiler/f18/pull/1044
-
- Feb 28, 2020
-
-
vjayathirtha-nv authored
Add semantic checks C8104, C8105. Add tests for C8103, C8104, C8105 Original-commit: flang-compiler/f18@f2a4e5c685bc421306611c64295caa50986d9578 Reviewed-on: https://github.com/flang-compiler/f18/pull/1037
-
Varun Jayathirtha authored
Original-commit: flang-compiler/f18@8134fc477e843d9bf525eeb552ba1d234140e7a7 Reviewed-on: https://github.com/flang-compiler/f18/pull/1037
-
psteinfeld authored
Semantic checks for C712 through C727 Original-commit: flang-compiler/f18@d6898ab882009197beb898152f0d05fe708cc658 Reviewed-on: https://github.com/flang-compiler/f18/pull/1031
-
Pete Steinfeld authored
I cleaned up some code and reverted a change to semantic checking for the exponent letter in REAL literals. Original-commit: flang-compiler/f18@e81f57fcf54ee0493044d53a6d1bf05f661e2660 Reviewed-on: https://github.com/flang-compiler/f18/pull/1031
-
- Feb 27, 2020
-
-
Pete Steinfeld authored
I've updated the compiler and test source with references to the contraints at the points where they were enforced and tested. Many of these were already implemented and required no code change. A few constraint checks were both implemented and tested, and I only added references to the constraint numbers in the compiler source and tests. Here are the things I had to implement: Constraint C716 states that, in a REAL constant, if both a kind-param and an exponent letter appear, the exponent letter must be 'E'. Constraints C715 and C719 require that a KIND value be actually implemented. Constraint C722 requires that functions that return assumed-length character types are external. Constraint C726 disallows assumed lenght charater types for dummy arguments and return types. Original-commit: flang-compiler/f18@45998741e5f04bba7db6eed6a4d27c1d25209b41 Reviewed-on: https://github.com/flang-compiler/f18/pull/1031 Tree-same-pre-rewrite: false
-
Tim Keith authored
Fix misparsed structure constructor in data stmt Original-commit: flang-compiler/f18@7649e5d705b2c87d710525d522a42288030c3bfa Reviewed-on: https://github.com/flang-compiler/f18/pull/1024
-
- Feb 26, 2020
-
-
Tim Keith authored
In a data statement like `data x / a(1) /`, `a(1)` may be an array element or a structure constructor. It is parsed as an array element so if it turns out `a` is a derived type it must be rewritten as a strucutre constructor. Original-commit: flang-compiler/f18@a2b2a330e7dbb8d719fdab9bb28921cf84f503ca Reviewed-on: https://github.com/flang-compiler/f18/pull/1024
-
- Feb 27, 2020
-
-
Tim Keith authored
Remove use of std::set::merge Original-commit: flang-compiler/f18@59c14bad32093f5ccfcd0a05e337295c2c1c85ea Reviewed-on: https://github.com/flang-compiler/f18/pull/1014
-
Tim Keith authored
Some versions of clang that we are building with don't have std::set::merge, even though it is part of C++17. Work around that by using std::set::insert until we can count on merge being available everywhere. Original-commit: flang-compiler/f18@886ccc37fbff5df00717ac728e2aba240d0a314c Reviewed-on: https://github.com/flang-compiler/f18/pull/1014
-
Peter Waller authored
This script, when run on a checkout of the f18 repository, takes the current origin/master and makes a branch called "new" with a rewritten history; The "new" branch has a flat git history (that is, a series of commits with only one parent). Flattening is done for merge commits by taking the content of the commit as it is at the merge commit. Original-commit: flang-compiler/f18@d9871fa9eb2304c4761a4a818187553396bb8924 Reviewed-on: https://github.com/flang-compiler/f18/pull/854
-
Peter Klausler authored
Fix layout of 128-bit IEEE-754 floating-point values Original-commit: flang-compiler/f18@91feed7a3841bb4f865353ebd7790c39ea926390 Reviewed-on: https://github.com/flang-compiler/f18/pull/1021
-
peter klausler authored
Original-commit: flang-compiler/f18@c95c45704e7c0afeb0d2dbec965afd368e923a3a Reviewed-on: https://github.com/flang-compiler/f18/pull/1021
-
- Feb 26, 2020
-
-
jeanPerier authored
Fix drone CI build failure due to lack of FileCheck Original-commit: flang-compiler/f18@a5644a4e8e81c47de1352829a562193e7cfaff03 Reviewed-on: https://github.com/flang-compiler/f18/pull/1026
-
Jean Perier authored
Original-commit: flang-compiler/f18@5eaebc800caa90b592c5ba8cf1fd6fd3987b3636 Reviewed-on: https://github.com/flang-compiler/f18/pull/1026
-
Jean Perier authored
Simply use the llvm build directory and save installing LLVM on the way. Original-commit: flang-compiler/f18@7848ab146ad32062daba9f07b032655568381a1b Reviewed-on: https://github.com/flang-compiler/f18/pull/1026 Tree-same-pre-rewrite: false
-
Tim Keith authored
Allow for access-stmt before namelist-stmt Original-commit: flang-compiler/f18@618dc08139664c944f57b6763751b264ca2cf579 Reviewed-on: https://github.com/flang-compiler/f18/pull/1023
-
Tim Keith authored
You can declare a name in an access statement and then declare it as a namelist group name. We weren't allowing that because we didn't convert a symbol with UnknownDetails to one with NamelistDetails. Fixes flang-compiler/f18#1022. Original-commit: flang-compiler/f18@a759204db583d337dda886acf748e0fe135c6259 Reviewed-on: https://github.com/flang-compiler/f18/pull/1023
-
- Feb 25, 2020
-
-
David Truby authored
NOTE: This commit introduces a dependency on LLVM HEAD Original-commit: flang-compiler/f18@97efc0194d411a17ec47edf5e27157d1a1afa3bc Reviewed-on: https://github.com/flang-compiler/f18/pull/993
-
CarolineConcatto authored
[flang] [LLVMify F18] Compiler module folders should have capitalised names (flang-compiler/f18#980) This patch renames the modules in f18 to use a capital letter in the module name Signed-off-by:
Caroline Concatto <caroline.concatto@arm.com> Original-commit: flang-compiler/f18@d2eb7a1c443d1539ef12b6f027074a0eb15b1ea0 Reviewed-on: https://github.com/flang-compiler/f18/pull/980
-
- Feb 22, 2020
-
-
Tim Keith authored
Temporarily disable part of data01 test Original-commit: flang-compiler/f18@cf48fe874617647e5f9250bedd35248711b8371c Reviewed-on: https://github.com/flang-compiler/f18/pull/1013
-
Tim Keith authored
`data x /a(1)/` is ambiguous. The data value may be an array element or a structure constructor. We need to parse it as one of these and then fix up the parse tree when it should have been the other one. My PR 1012 changed the parser to identify this as an array element. That makes this test invalid until we have the right parse tree fixup, so I am disabling it for now. Original-commit: flang-compiler/f18@72aa278f0341f345a12fcd76a6ad1f2045ecc233 Reviewed-on: https://github.com/flang-compiler/f18/pull/1013
-
Tim Keith authored
Add more checks on WHERE and FORALL Original-commit: flang-compiler/f18@c9638d10c6515703e8c095127bd46ae1dae1637e Reviewed-on: https://github.com/flang-compiler/f18/pull/1009
-