[Bug c/13134] [3.4 regression] Visibility attribute is ignored

Richard Henderson rth@redhat.com
Tue Nov 25 01:55:00 GMT 2003


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~



More information about the Gcc-bugs mailing list