Bug#536570: gcc-4.3: Redeclaration with different visibility isn't spotted when using -fvisibility=hidden

2009-07-11 Thread Mike Hommey
Package: gcc-4.3 Version: 4.3.3-13 Severity: normal 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. $ cat test.c EOF extern int foo();

Bug#536570: gcc-4.3: Redeclaration with different visibility isn't spotted when using -fvisibility=hidden

2009-07-11 Thread Bastian Blank
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

Bug#536570: gcc-4.3: Redeclaration with different visibility isn't spotted when using -fvisibility=hidden

2009-07-11 Thread Mike Hommey
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