This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/13134] [3.4 regression] Visibility attribute is ignored
- From: "rth at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2003 01:55:11 -0000
- Subject: [Bug c/13134] [3.4 regression] Visibility attribute is ignored
- References: <20031120005743.13134.bryner@brianryner.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rth at redhat dot com 2003-11-25 01:55 -------
Subject: Re: [3.4 regression] Visibility attribute is ignored
On Mon, Nov 24, 2003 at 06:16:15AM -0000, austern at apple dot com wrote:
> What I find inelegant is the idea that you get DEFAULT either by
> saying nothing or by explicitly saying visibility("default")...
The default setting exists in gcc so that one might override the
"default" (ahem) setting with a command-line option. Eg.
-fvisibility=hidden
would mark all symbols hidden unless overridden by an attribute
on the actual decl. The command-line switch never got implemented,
unfortunately.
I agree with Geoff that conflicting attributes for a given decl
ought to generate an error.
r~
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13134