- Mar 18, 2020
-
-
Tim Keith authored
Fixes for separate module procedures Original-commit: flang-compiler/f18@bb225be9b1aa0ca9cc56727c83821c49db102117 Reviewed-on: https://github.com/flang-compiler/f18/pull/1080
-
Tim Keith authored
When a module subprogram has the MODULE prefix the following must match with the corresponding separate module procedure interface body: - C1549: characteristics and dummy argument names - C1550: binding label - C1551: NON_RECURSIVE prefix SubprogramMatchHelper performs all of these checks. Rename separate-module-procs.f90 to separate-mp01.f90 so we can have separate-mp02.f90 (etc). Make ShapesAreCompatible public in characteristics.h. Add Scope::IsSubmodule. Original-commit: flang-compiler/f18@d121578af17109de3cea23617e4b8239971b5527 Reviewed-on: https://github.com/flang-compiler/f18/pull/1080
-
Tim Keith authored
A separate-module-subprogram is declared as `module procedure ...` and gets its characteristics from the declaration of that name as a separate module procedure. When we encounter one, we need to create symbols in the new subprogram scope for the dummy arguments and function return (if any). The failure to create these symbols led to the bug in issue flang-compiler/f18#1054: when a dummy argument was referenced, the compiler interpreted it as an implicit declaration because there was no symbol for the argument. Fixes flang-compiler/f18#1054. Original-commit: flang-compiler/f18@4d3c4bac843dcc6351fbe7538c6ce23bb9c1a215 Reviewed-on: https://github.com/flang-compiler/f18/pull/1080 Tree-same-pre-rewrite: false
-
Tim Keith authored
When we encounter a ProcDecl and a symbol for it has already been created, replace the CharBlock for the name with the one in the ProcDecl as it is the "main" declaration of that name. This matches what is done for an EntityDecl. This moves the location of some error messages to a better source location so update the affected tests. Original-commit: flang-compiler/f18@514c0f2c9477040f830fbf0495e4d38129648615 Reviewed-on: https://github.com/flang-compiler/f18/pull/1080 Tree-same-pre-rewrite: false
-
Peter Klausler authored
Do not emit a prefix for a default-kind character constant in AsFortran Original-commit: flang-compiler/f18@0011011a04ec13df7bcccd81b2f931f4e420eef9 Reviewed-on: https://github.com/flang-compiler/f18/pull/1078
-
peter klausler authored
Original-commit: flang-compiler/f18@4a3db55727a93805d3f047713e5d253543ee51fa Reviewed-on: https://github.com/flang-compiler/f18/pull/1078
-
- Mar 17, 2020
-
-
Tim Keith authored
Test cleanup Original-commit: flang-compiler/f18@809f4116f2086a8941bf786a5ac091885283494a Reviewed-on: https://github.com/flang-compiler/f18/pull/1075
-
Tim Keith authored
Fix omp-nested01.f90 so that it is not an expected failure. The test was never enabled but I'm guessing this is what it's supposed to do. Fix the instructions to include "make test" as part of running tests. Original-commit: flang-compiler/f18@c351181cabb234f73cb09c23e45dfe0bfc2d7219 Reviewed-on: https://github.com/flang-compiler/f18/pull/1075
-
Peter Klausler authored
First cut at runtime API for allocatable management Original-commit: flang-compiler/f18@d9232d6efda7c89a1df080d28b29059a6937e7a0 Reviewed-on: https://github.com/flang-compiler/f18/pull/1070
-
peter klausler authored
Remove AllocateDefaultCharacter Refinements in code review Original-commit: flang-compiler/f18@688512ddc671fa1ed54224b7cfef49a1c2284c99 Reviewed-on: https://github.com/flang-compiler/f18/pull/1070
-
- Mar 16, 2020
-
-
Peter Klausler authored
Complete formatting of pointer assignments Original-commit: flang-compiler/f18@07b8ab1907102ef4d2f6248c0786d3738ae5d871 Reviewed-on: https://github.com/flang-compiler/f18/pull/1073
-
- Mar 14, 2020
-
-
peter klausler authored
Original-commit: flang-compiler/f18@9625317ee8aed40a3827fe551cecf08aa34ee7a2 Reviewed-on: https://github.com/flang-compiler/f18/pull/1073
-
Steve Scalpone authored
Porting F18 tests to use LLVM lit without FileCheck Original-commit: flang-compiler/f18@89bc84fe562ca2a2622438ac14908bce39fa7cfc Reviewed-on: https://github.com/flang-compiler/f18/pull/1027
-
- Mar 13, 2020
-
-
Luke Ireland authored
All Fortran tests are now run in lit, except Preprocessing tests flang-compiler/f18#1052 Preprocessing tests are a separate kind of test, so will be sorted out later. Original-commit: flang-compiler/f18@3f99d35f3d4f57f704fd91a0d6ba8af308e900b3 Reviewed-on: https://github.com/flang-compiler/f18/pull/1027
-
Luke Ireland authored
We have re-classified a subset of the regression tests as unit tests and now we are porting the remaining ones. Test discovery and running is now performed by lit rather than ctest. The tests continue to use their original scripts with minor modifications. Most of the changes were mechanical and so scripted. A few changes were made by hand. Details Manual: * modfile09-*.f90 tests depend on being run together as some tests have dependencies on modules created by other tests. This will need separating out when porting away from test_modfile.sh, but for now, added modfile09-*.f90 to the Inputs directory and added a single tests modfile09.f90 to hold the run line. * getdefinition03-a.f90 includes a non-test file getdefinition03-b.f90. Manually edited the former to find the latter in Inputs so as to add only one test. * Same pattern for getsymbols03-{a,b}.f90 Auto: * Remaining tests have a lit RUN line added to them based on the type of test they are. * Failing tests also have an XFAIL line added to them. * Generic tests have their pre-existing RUN lines replaced with the word "EXEC" to avoid conflict with the added lit RUN line. Original-commit: flang-compiler/f18@63ec0af9f4c8e736a626d1cd1410f71f4e578aa9 Reviewed-on: https://github.com/flang-compiler/f18/pull/1027 Tree-same-pre-rewrite: false -
Luke Ireland authored
Some of the regression tests are C programs that act as test harnesses for the compiler internals as opposed to being Fortran inputs to test the compiler in action. The former style of tests are analog to LLVM's unittests and will not use the lit framework. Change-Id: I0ff10e23f66ff843e8fff4c35cfb6559b9dab762 Original-commit: flang-compiler/f18@2bfddbe8f8898551a28c3ea07b7ae508018f8634 Reviewed-on: https://github.com/flang-compiler/f18/pull/1027 Tree-same-pre-rewrite: false
-
Luke Ireland authored
These tests were disabled due to https://github.com/flang-compiler/f18/issues/407. Previously these tests caused F18 to crash as the feature was not fully implemented. The altreturn feature is now implemented, so these tests can be re-enabled. altreturn03 tested some negative cases which F18 correctly diagnoses. Modified that test to expect these new error messages. Also make the later cases in the test reachable. These tests can now be ported by the script to lit-style tests. Change-Id: Ib336c10d55068d9a26fc2deb43ad052e74e73456 Original-commit: flang-compiler/f18@4de19d7ba2df892ce4361461841c3997de439532 Reviewed-on: https://github.com/flang-compiler/f18/pull/1027 Tree-same-pre-rewrite: false
-
- Mar 14, 2020
-
-
jeanPerier authored
Support latest LLVM head with FIR - MLIR SideEffects interface change Original-commit: flang-compiler/f18@d9fadfacbc6c5edb03f9c0b943fbe1b29f04c25b Reviewed-on: https://github.com/flang-compiler/f18/pull/1071
-
- Mar 13, 2020
-
-
Jean Perier authored
Include new .td after LLVM changes: https://github.com/llvm/llvm-project/commit/0ddba0bd59c337f16b51a00cb205ecfda46f97fa Tested to work with LLVM head ecd3e678 from 2020-03-13 01:45 am PCT Backwards compatible with previous known compatible heads at least back to fde9d33f from 2020-03-10, so need to update LLVM builds if they previously work with FIR. Original-commit: flang-compiler/f18@45454587c932c23430f0f1eb81df816dd75de86b Reviewed-on: https://github.com/flang-compiler/f18/pull/1071
-
Isuru Fernando authored
Original-commit: flang-compiler/f18@d0f9ef7742132a5f9f7173b773aaac934484c7c1 Reviewed-on: https://github.com/flang-compiler/f18/pull/1063
-
Eric Schweitz authored
Original-commit: flang-compiler/f18@4cdc9f75e2bd81889ccc4e30da8c40b2335f10c0 Reviewed-on: https://github.com/flang-compiler/f18/pull/1067
-
David Truby authored
Original-commit: flang-compiler/f18@094f55890775362f093bb62c57c13b8d3436c82e Reviewed-on: https://github.com/flang-compiler/f18/pull/988
-
- Mar 12, 2020
-
-
RichBarton-Arm authored
Original-commit: flang-compiler/f18@e5f369d0863899b601079b2d97e9144c1fd0b71e Reviewed-on: https://github.com/flang-compiler/f18/pull/1066
-
jeanPerier authored
Adds FIR library that implements an MLIR dialect to which Fortran parse-tree will be lowered to. FIR is defined and documented inside FIROps.td added in this commit. It is possible to generate a more readable description FIRLangRef.md from FIROps.td following the related instructions added to the README.md by this commit. This patch adds FIR definition and implementation that allow parsing, printing, and verifying FIR. FIR transformations and lowering to Standard and LLVM dialects are not part of this patch. The FIR verifiers are verifying the basic properties of FIR operations in order to provide a sufficient frame for lowering. Verifiers for more advanced FIR properties can be added as needed. Coarrays are not covered by FIR defined in this patch. This patch also adds tco tool that is meant to process FIR input files and drives transformations on it. The tco tool is used for testing. In this patch, it is only used to demonstrate parsing/verifying/ and dumping FIR with round-trip tests. Note: This commit does not reflect an actual work log, it is a feature-based split of the changes done in the FIR experimental branch. The related work log can be found in the commits between: https://github.com/schweitzpgi/f18/commit/742edde572bd74d77cf7d447132ccf0949187fce and https://github.com/schweitzpgi/f18/commit/2ff55242126d86061f4fed9ef7b59d3636b5fd0b Changes on top of these original commits were made during this patch review. Original-commit: flang-compiler/f18@30b428a51e140e5fb12bd53a0619f10ff510f408 Reviewed-on: https://github.com/flang-compiler/f18/pull/1035
-
Peter Klausler authored
Roll up runtime I/O work Original-commit: flang-compiler/f18@bcb8565a93aca69f7c65eca23760293feebf717d Reviewed-on: https://github.com/flang-compiler/f18/pull/1053
-
peter klausler authored
Scan FORMAT strings locally to avoid C++ binary runtime dependence when computing deepest parenthesis nesting Remove a dependency on ostream from runtime Remove remaining direct external references from runtime to C++ library binaries Remove runtime dependences on lib/common SetPos() and SetRec() Instantiate templates for input Begin input; rearrange locking, deal with CLOSE races View() Update error message in test to agree with compiler change First cut at real input More robust I/O runtime error handling Debugging of REAL input Add iostat.{h,cpp} Rename runtime/numeric-* to runtime/edit-* Move templates around, templatize integer output editing Move LOGICAL and CHARACTER output from io-api.cpp to edit-output.cpp Change pointer argument to reference More list-directed input Complex list-directed input Use enum class Direction rather than bool for templates Catch up with changes to master Undo reformatting of Lower code Use record number instead of subscripts for internal unit Unformatted sequential backspace Testing and debugging Dodge bogus GCC warning Add <cstddef> for std::size_t to fix CI build Address review comments Original-commit: flang-compiler/f18@50406b349609efdde76e48bf2caa039d031dd1c4 Reviewed-on: https://github.com/flang-compiler/f18/pull/1053 -
Peter Klausler authored
Fix an ambiguous overload error Original-commit: flang-compiler/f18@c39a22b6e40dcf1f9438b75a1b5b3b8b7d5d4778 Reviewed-on: https://github.com/flang-compiler/f18/pull/1029
-
- Mar 05, 2020
-
-
Isuru Fernando authored
Original-commit: flang-compiler/f18@70fa71ff7be3024a44b8214be663b9701adc5b1f Reviewed-on: https://github.com/flang-compiler/f18/pull/1029
-
- Mar 12, 2020
-
-
Peter Klausler authored
Extend shape analysis to cope better with ASSOCIATE construct entities Original-commit: flang-compiler/f18@abee10616802d9ce12051dc2e1b911144dd52198 Reviewed-on: https://github.com/flang-compiler/f18/pull/1061
-
peter klausler authored
Original-commit: flang-compiler/f18@ed2e4842d31f1329d3bec802c2f284ba62343f99 Reviewed-on: https://github.com/flang-compiler/f18/pull/1061
-
peter klausler authored
Original-commit: flang-compiler/f18@dc1c95277dd6161ce2d13f971ca91cce3e771e8a Reviewed-on: https://github.com/flang-compiler/f18/pull/1061 Tree-same-pre-rewrite: false
-
- 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
-