This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc visibility used by moz
- From: Geoffrey Keating <geoffk at apple dot com>
- To: Tristan Wibberley <maihem at maihem dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: 14 Jul 2006 11:18:14 -0700
- Subject: Re: gcc visibility used by moz
- References: <44B412CC.5000507@smedbergs.us> <44B41C1A.3010000@redhat.com> <44B44AA5.10506@maihem.org>
Tristan Wibberley <maihem@maihem.org> writes:
> The types are defined in headers and are thus known
> to exist - no visibility attributes will or should change that.
The question here is not whether the types exist, but which types are
the same as which other types.
I think that what you want is a model of visibility in which all types
are always visible. Although abstractly such a model is possible, I
think it's less useful than the current model, because it makes it
hard to isolate shared libraries from each other. It is certainly
possible to emulate such a model with the current GCC, if it's what
you want, by simply not marking types as hidden.