Bug 20791 - visibilty options don't work
Summary: visibilty options don't work
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-06 13:37 UTC by Oliver Stoeneberg
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i686-pc-mingw32
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Stoeneberg 2005-04-06 13:37:16 UTC
When compiling a source file with "-fvisibility=hidden" and/or
"-fvisibility-inlines-hidden" I get the following error for each function in the
file (happens with C and C++ front-end):

C:/DOKUME~1/OSTOEN~2/LOKALE~1/Temp/ccCCaaaa.s: Assembler messages:
C:/DOKUME~1/OSTOEN~2/LOKALE~1/Temp/ccCCaaaa.s:5: Error: unknown pseudo-op: `.hidden'

I am using a MinGW32 build of GCC, so I am not quite sure, if thise feature is
for MinGW32, but if it won't work for MinGW32, it should be disabled.

Here is my specs:

Using built-in specs.
Target: i686-pc-mingw32
Configured with: /datal/gcc/gcc/configure --prefix=/datal/gcc/build/wingcc
--build=i686-pc-linux-gnu --host=i686-pc-mingw32 --target=i686-pc-mingw32
--enable-languages=c,c++,java --with-gcc --with-gnu-as --with-gnu-ld
--enable-threads=win32 --disable-nls --disable-win32-registry --disable-shared
--disable-debug --without-newlib --enable-libgcj --disable-java-awt --without-x
--enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter
--enable-hash-synchronization --enable-sjlj-exceptions --enable-libgcj-multifile
--enable-libgcj-mingw-osapi=ansi
Thread model: win32
gcc version 4.0.0 20050324 (prerelease)
Comment 1 Andrew Pinski 2005-04-06 15:03:11 UTC
Did you build GCC your self?  If not, did you get the version of binutils that the person was offering.  
And yes we have a check while configuring to enable/disabling visiblity.
Comment 2 Oliver Stoeneberg 2005-04-06 20:56:32 UTC
I didn't build GCC 4.0.0 myself, I got it from this site:

http://www.thisiscool.com/gcc_mingw.htm

and he is offering a complete MinGW package. Looking at the list of components
he put in, we can see, that it says "binutils-2.15.94-20050118-1", so I guess
it's a build done by the MinGW guys.
Comment 3 Oliver Stoeneberg 2005-06-27 09:32:38 UTC
OK, I got a more recent version of the binutils and I know get this:

91 C:\cvs\STLport\stlport\stl\_new.h [Warning] visibility attribute not
supported in this configuration; ignored

Guess this can be closed now. Sorry for the report.
Comment 4 Andrew Pinski 2005-06-27 13:39:19 UTC
So closing as invalid.