]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add missing declarations to gcc/m2/gm2-libs-min/M2RTS.{def,mod}
authorGaius Mulley <gaiusmod2@gmail.com>
Thu, 5 Jan 2023 14:13:43 +0000 (14:13 +0000)
committerGaius Mulley <gaiusmod2@gmail.com>
Thu, 5 Jan 2023 14:13:43 +0000 (14:13 +0000)
commita24888388bab339cf8a8726ca67a0b4947a2d9ce
treec53284daa55670030eff5d543c87d56f84103a50
parentdd77b04999534f61825cc810a5bc428707b8106b
Add missing declarations to gcc/m2/gm2-libs-min/M2RTS.{def,mod}

This patch adds two missing procedures to
gcc/m2/gm2-libs-min/M2RTS.{def,mod} required for linking.  The
patch also includes test code, changes to
gcc/testsuite/lib/gm2.exp and an expect tcl script to test the
min libraries.

gcc/m2/ChangeLog:

* gm2-libs-min/M2RTS.def (ConstructModules): New procedure
declaration.
(DeconstructModules): New procedure declaration.
* gm2-libs-min/M2RTS.mod (ConstructModules): New procedure
dummy implementation.
(DeconstructModules): New procedure dummy implementation.

gcc/testsuite:

* lib/gm2.exp (gm2_init_minx): New procedure.
(gm2_init_min): New procedure calls gm2_init_min with
dialect flags.
* gm2/link/min/pass/tiny.mod: New test case.
* gm2/link/min/pass/link-min-pass.exp: New file.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-libs-min/M2RTS.def
gcc/m2/gm2-libs-min/M2RTS.mod
gcc/testsuite/gm2/link/min/pass/link-min-pass.exp [new file with mode: 0644]
gcc/testsuite/gm2/link/min/pass/tiny.mod [new file with mode: 0644]
gcc/testsuite/lib/gm2.exp