Skip to content

Commit

Permalink
#2231 Update changelog and small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sergisiso committed Jul 28, 2023
1 parent ef3f0b1 commit c9b41c7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,10 @@
into is_constant (bool) and initial_value (PSyIR Node). This allows
parsing Fortran declarations with initial_value that are not constant.

181) PR #2231 for #2213. The Fortran frontend and backend now also
consider that UnresolvedInterface symbols can come from the body of
a Fortran Interface.

release 2.3.1 17th of June 2022

1) PR #1747 for #1720. Adds support for If blocks to PSyAD.
Expand Down
2 changes: 1 addition & 1 deletion src/psyclone/psyir/backend/fortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ def gen_decls(self, symbol_table, is_module_scope=False):
isinstance(sym.interface, UnresolvedInterface)):
all_symbols.remove(sym)

# If the symbol table contain any symbols with an
# If the symbol table contains any symbols with an
# UnresolvedInterface interface (they are not explicitly
# declared), we need to check that we have at least one
# wildcard import which could be bringing them into this
Expand Down
2 changes: 1 addition & 1 deletion src/psyclone/psyir/frontend/fparser2.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def _find_or_create_unresolved_symbol(location, name, scope_limit=None,
bringing the symbol into scope) or one or more interfaces with
unknown content then a new Symbol with the specified visibility
but of unknown interface is created and inserted in the most local
SymbolTable that has such an import. The scope_limit variable
SymbolTable that has such an import. The scope_limit variable
further limits the symbol table search so that the search through
ancestor nodes stops when the scope_limit node is reached
i.e. ancestors of the scope_limit node are not searched.
Expand Down
5 changes: 3 additions & 2 deletions src/psyclone/tests/generator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,9 @@ def test_script_file_too_short():
_, _ = generate(os.path.join(BASE_PATH, "dynamo0p3",
"1_single_invoke.f90"),
api="dynamo0.3",
script_name=os.path.join(BASE_PATH,
"dynamo0p3", "testkern_xyz_mod.f90"))
script_name=os.path.join(
BASE_PATH,
"dynamo0p3", "testkern_xyz_mod.f90"))


def test_no_script_gocean():
Expand Down

0 comments on commit c9b41c7

Please sign in to comment.