This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Bug c/13134] [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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]