public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14654] New: gcc does not support the visibility attribute?
@ 2004-03-19 15:48 jkolb at brandeis dot edu
  2004-03-19 15:56 ` [Bug c/14654] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: jkolb at brandeis dot edu @ 2004-03-19 15:48 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2004-03-25 18:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
2004-03-19 15:56 ` [Bug c/14654] " pinskia at gcc dot gnu dot org
2004-03-19 15:59 ` jkolb at brandeis dot edu
2004-03-19 16:05 ` pinskia at gcc dot gnu dot org
2004-03-19 19:30 ` jkolb at brandeis dot edu
2004-03-19 19:32 ` jkolb at brandeis dot edu
2004-03-20 21:18 ` jkolb at brandeis dot edu
2004-03-21 14:32 ` worf at sbox dot tu-graz dot ac dot at
2004-03-21 22:49 ` worf at sbox dot tu-graz dot ac dot at
2004-03-22 21:25 ` jkolb at brandeis dot edu
2004-03-25  6:27 ` jkolb at brandeis dot edu
2004-03-25 17:53 ` worf at sbox dot tu-graz dot ac dot at
2004-03-25 18:00 ` jkolb at brandeis dot edu
2004-03-25 18:35 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).