- Mar 11, 2020
-
-
peter klausler authored
Fix incomplete copy&paste Another review comment addressed Original-commit: flang-compiler/f18@a2e2593fa5457a7737faab8ee74e5f3b18cd71f7 Reviewed-on: https://github.com/flang-compiler/f18/pull/1061 Tree-same-pre-rewrite: false
-
- Mar 12, 2020
-
-
Peter Klausler authored
Rename EXTERN_C_END to FORTRAN_EXTERN_C_END Original-commit: flang-compiler/f18@b04233ea55be6b908363aa54e03fac5d3ace3341 Reviewed-on: https://github.com/flang-compiler/f18/pull/1051
-
- Mar 06, 2020
-
-
Isuru Fernando authored
Since EXTERN_C_END is a macro defined in Windows system headers Original-commit: flang-compiler/f18@4c6e5608adddf25a53fbdbfd5f0e1b98278cc5ec Reviewed-on: https://github.com/flang-compiler/f18/pull/1051
-
- Mar 11, 2020
-
-
Tim Keith authored
Allow for vector subscript on LHS of assignment Original-commit: flang-compiler/f18@ed6e34d33b08b162608ce7a648e08ea6a333a5ed Reviewed-on: https://github.com/flang-compiler/f18/pull/1062
-
Tim Keith authored
Original-commit: flang-compiler/f18@38aefd41f051546024ecf4555a3bb3385b99f3c7 Reviewed-on: https://github.com/flang-compiler/f18/pull/1062
-
Tim Keith authored
Fix scope accessibility check Original-commit: flang-compiler/f18@e671fc0754b1b850fb677da11ff6110befba5ef9 Reviewed-on: https://github.com/flang-compiler/f18/pull/1060
-
Tim Keith authored
The check for whether a private component is accessible was depending on determining whether the source range of the current scope was within the source range of the module that the component was declared in. This could fail if the current scope was of kind `ImpliedDos` and had no source range. The fix is to add `Scope::Contains` to check the relationship by traversing the parent links. These are created when the Scope is so are always reliable. The source range of a scope is built up over time. Original-commit: flang-compiler/f18@d787108637adad358ccf8af3d200acb3f66ce099 Reviewed-on: https://github.com/flang-compiler/f18/pull/1060
-
Peter Klausler authored
Changes that enable f18 build with latest clang Original-commit: flang-compiler/f18@9e628b633cad8ed07a89f4e270828370c826ab24 Reviewed-on: https://github.com/flang-compiler/f18/pull/1059
-
peter klausler authored
Prep for review Original-commit: flang-compiler/f18@111f49061e07604670614250197a1064959fd981 Reviewed-on: https://github.com/flang-compiler/f18/pull/1059
-
- Mar 10, 2020
-
-
Tim Keith authored
Perform definability checks on LHS of assignment Original-commit: flang-compiler/f18@a7b49f99a6b2056504b74c7274582935b10b3929 Reviewed-on: https://github.com/flang-compiler/f18/pull/1050
-
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
-