[Bug c/14654] New: gcc does not support the visibility attribute?
jkolb at brandeis dot edu
gcc-bugzilla@gcc.gnu.org
Fri Mar 19 15:48:00 GMT 2004
When I try to compile this file:
#include <stdio.h>
void test() __attribute__ ((visibility ("hidden")));
void test() { puts("blah"); }
int
main(int argc, char **argv)
{
test();
return 0;
}
I get:
test.c: In function `test':
test.c:5: warning: visibility attribute not supported in this configuration; ignored
Also, I cannot build glibc now because it requires the visibility attribute.
This is stock fsf gcc 3.3.3.
gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/specs
Configured with: /usr/src/gcc-3.3.3/configure --host=i686-pc-linux-gnu
--prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man
--enable-threads=posix --enable-languages=c,c++,f77,objc
I compiled it against linux 2.6.3. There are a few people I know of who have
this issue but we can't figure out why.
--
Summary: gcc does not support the visibility attribute?
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jkolb at brandeis dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
More information about the Gcc-bugs
mailing list