]> git.ipfire.org Git - thirdparty/gcc.git/commit
a68: add import from .m68 file
authorMohammad-Reza Nabipoor <mnabipoor@gnu.org>
Tue, 23 Dec 2025 20:10:51 +0000 (21:10 +0100)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Tue, 23 Dec 2025 22:02:10 +0000 (23:02 +0100)
commit6437f059af0ac0c709bef97db5890a4ff33b8a1d
tree6d3c900110775bd0ce96c76e84f50dc5c28c2d6a
parent758876f023a58b9a02f350347b58d4e116a448bc
a68: add import from .m68 file

Signed-off-by: Mohammad-Reza Nabipoor <mnabipoor@gnu.org>
gcc/algol68/ChangeLog

* a68.h (a68_file_size): Changed to use file descriptor.
(a68_file_read): Likewise.
* a68-parser-scanner.cc (a68_file_size): Likewise.
(a68_file_read): Likewise.
(read_source_file): Adapt `a68_file_{size,read}'.
(include_files): Likewise.
* a68-lang.cc (a68_handle_option): Likewise.
* a68-imports.cc (a68_find_export_data): Implement
reading from module's .m68 file if available.

gcc/testsuite/ChangeLog

* algol68/compile/modules/compile.exp (dg-data): New procedure
for writing binary test data to disk.
* algol68/compile/modules/program-m68-lp64.a68: New test which
embeds binary module data.
* algol68/compile/modules/program-m68-llp64.a68: Likewise.
* algol68/compile/modules/program-m68-ilp32.a68: Likewise.
* algol68/compile/modules/program-m68-lp64-be.a68: Likewise.
* algol68/compile/modules/program-m68-llp64-be.a68: Likewise.
gcc/algol68/a68-imports.cc
gcc/algol68/a68-lang.cc
gcc/algol68/a68-parser-scanner.cc
gcc/algol68/a68.h
gcc/testsuite/algol68/compile/modules/compile.exp
gcc/testsuite/algol68/compile/modules/program-m68-ilp32.a68 [new file with mode: 0644]
gcc/testsuite/algol68/compile/modules/program-m68-llp64-be.a68 [new file with mode: 0644]
gcc/testsuite/algol68/compile/modules/program-m68-llp64.a68 [new file with mode: 0644]
gcc/testsuite/algol68/compile/modules/program-m68-lp64-be.a68 [new file with mode: 0644]
gcc/testsuite/algol68/compile/modules/program-m68-lp64.a68 [new file with mode: 0644]