------- Comment #9 from aph at gcc dot gnu dot org  2007-07-12 10:49 -------
This is somewhat bewildering: if the visibility attribute is not supported, who
does setting the visibility make any difference to the build?

Nonetheless, I have no objection to something like

static void
hide (tree decl)
{
#ifdef __linux__
  DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN;
  DECL_VISIBILITY_SPECIFIED (decl) = 1;
#endif
}

or whatever macro seems appropriate to you, in order to restrict this to
GNU/Linux systems.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32462

Reply via email to