On Tue, Dec 02, 2003 at 09:35:51AM -0800, Matt Austern wrote:
As you might have noticed from following the discussion on the
gcc list, the main reason I haven't fixed this yet is that we haven't
yet reached an agreement about what the semantics of the
visibility attribute should be when you've got multiple declarations
of the same symbol.
What assumptions does the glibc source make about this, and how
tightly wedded are you to those assumptions?
glibc assumes that if there is a decl without visibility attribute
and decl with visibility attribute, that the visibility specified
in the visibility attribute is used.
Say:
int foo (void) __attribute__((visibility ("hidden")));
int bar (void);
...
int foo (void) { return 1; }
int __attribute__((visibility ("hidden"))) bar (void) { return 2; }
then both foo and bar are hidden.