Bug#536570: gcc-4.3: Redeclaration with different visibility isn't spotted when using -fvisibility=hidden
On Sat, Jul 11, 2009 at 12:00:58PM +0200, Bastian Blank wrote:
> On Sat, Jul 11, 2009 at 10:58:46AM +0200, Mike Hommey wrote:
> > When using -fvisibility=hidden to define the global visibility to hidden,
> > declaring a function with the global visibility, then redeclaring it
> > with visibility default results in the symbol being exported.
>
> Pleas rered the documentation. It stats:
>
> | "default"
> | Default visibility is the normal case for the object file
> | format. This value is available for the visibility attribute
> | to override other options that may change the assumed
> | visibility of entities.
>
Please reread the whole bug report.
Mike
Reply to: