modula-2: Module registration constructors need to be visible [PR108259].
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 1 Jan 2023 15:42:03 +0000 (15:42 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 4 Jan 2023 14:53:07 +0000 (14:53 +0000)
commit751c2d9a46f786381a90d5c8c49947fa0d9b7ee5
treedd9497d297a374065662f93f7eebcb480d9b485e
parente15e8d430c5f6a85334f67fd552850e8aa27a7cf
modula-2: Module registration constructors need to be visible [PR108259].

In the current design the main executable links explicitly to the module
registration construtors that it uses.  This means that they must be
visible in shared libraries.

PR modula2/108259

gcc/m2/ChangeLog:

* gm2-gcc/m2decl.cc (m2decl_DeclareModuleCtor): Make module
registration constructors visible.
gcc/m2/gm2-gcc/m2decl.cc