diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2023-01-01 15:42:03 +0000 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2023-01-04 14:53:07 +0000 |
commit | 751c2d9a46f786381a90d5c8c49947fa0d9b7ee5 (patch) | |
tree | dd9497d297a374065662f93f7eebcb480d9b485e | |
parent | e15e8d430c5f6a85334f67fd552850e8aa27a7cf (diff) | |
download | gcc-751c2d9a46f786381a90d5c8c49947fa0d9b7ee5.zip gcc-751c2d9a46f786381a90d5c8c49947fa0d9b7ee5.tar.gz gcc-751c2d9a46f786381a90d5c8c49947fa0d9b7ee5.tar.bz2 |
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.
-rw-r--r-- | gcc/m2/gm2-gcc/m2decl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/m2/gm2-gcc/m2decl.cc b/gcc/m2/gm2-gcc/m2decl.cc index 62bfefd..d849f8a 100644 --- a/gcc/m2/gm2-gcc/m2decl.cc +++ b/gcc/m2/gm2-gcc/m2decl.cc @@ -276,7 +276,7 @@ m2decl_DeclareModuleCtor (tree decl) /* Declare module_ctor (). */ TREE_PUBLIC (decl) = 1; DECL_ARTIFICIAL (decl) = 1; - DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN; + DECL_VISIBILITY (decl) = VISIBILITY_DEFAULT; DECL_VISIBILITY_SPECIFIED (decl) = 1; DECL_STATIC_CONSTRUCTOR (decl) = 1; return decl; |