This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14489] New: alternate keywords for visibility attribute
- From: "markus+gcc at gyger dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Mar 2004 20:39:46 -0000
- Subject: [Bug c/14489] New: alternate keywords for visibility attribute
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The Sun ONE Studio 8 and Sun Studio 9 compilers on Solaris support the linker
scoping specifiers __global, __hidden and __symbolic which roughly correspond to
gcc's default, hidden and protected visibility attributes. Is there a chance to
have these keywords supported on gcc? E.g.
__global void linker_scope_global() {}
__hidden void linker_scope_hidden() {}
__symbolic void linker_scope_symbolic() {}
void linker_scope_default() {}
in addition to
__attribute__ ((visibility ("default"))) void linker_scope_global() {}
__attribute__ ((visibility ("internal"))) void linker_scope_internal() {}
__attribute__ ((visibility ("hidden"))) void linker_scope_hidden() {}
__attribute__ ((visibility ("protected"))) void linker_scope_symbolic() {}
void linker_scope_default() {}
The command line option -xldscope={global|hidden|symbolic} allows to set the
default scope. See also:
http://docs.sun.com/source/817-0924/sun.specific.html#83476
http://developers.sun.com/tools/cc/documentation/s1s8cc_documentation/READMEs/c.html#feature13
--
Summary: alternate keywords for visibility attribute
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: markus+gcc at gyger dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.9
GCC host triplet: sparc-sun-solaris2.9
GCC target triplet: sparc-sun-solaris2.9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14489