https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977
--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to ibuclaw from comment #6) > There's r13-1113 with introduced the use of visible(). + /* Visibility attributes are used by the debugger. */ + set_visibility_for_decl (decl->csym, decl); + DECL_INSTANTIATED (decl->csym) = (decl->isInstantiated () != NULL); set_linkage_for_decl (decl->csym); } @@ -2447,3 +2433,37 @@ set_linkage_for_decl (tree decl) if (DECL_ARTIFICIAL (decl)) return d_weak_linkage (decl); } + +/* NODE is a FUNCTION_DECL, VAR_DECL or RECORD_TYPE for the declaration SYM. + Set flags to reflect visibility that NODE will get in the object file. */ + +void +set_visibility_for_decl (tree node, Dsymbol *sym) hmmm.. should the call be "set_visibility_for_decl (decl, decl->csym); ? or should the signature of set_visibility_for_decl() be set_visibility_for_decl (Dsymbol *sym, tree node)? or maybe I misread the comment....