public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14489] New: alternate keywords for visibility attribute
@ 2004-03-08 20:39 markus+gcc at gyger dot org
2004-03-08 20:43 ` [Bug c/14489] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: markus+gcc at gyger dot org @ 2004-03-08 20:39 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/14489] alternate keywords for visibility attribute
2004-03-08 20:39 [Bug c/14489] New: alternate keywords for visibility attribute markus+gcc at gyger dot org
@ 2004-03-08 20:43 ` pinskia at gcc dot gnu dot org
2004-04-07 2:52 ` pinskia at gcc dot gnu dot org
2005-05-25 14:29 ` markus+gcc at gyger dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-08 20:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-08 20:42 -------
You can use the preprocessor aka '-D__hidden=__attribute__ ((visibility ("hidden")))' as setting what the
defualt is, I think there is another bug for that.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14489
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/14489] alternate keywords for visibility attribute
2004-03-08 20:39 [Bug c/14489] New: alternate keywords for visibility attribute markus+gcc at gyger dot org
2004-03-08 20:43 ` [Bug c/14489] " pinskia at gcc dot gnu dot org
@ 2004-04-07 2:52 ` pinskia at gcc dot gnu dot org
2005-05-25 14:29 ` markus+gcc at gyger dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-07 2:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-07 02:52 -------
Confirmed, but as I said you can use the preprocessor, just like what cgwin/mgwin does
for their keywords.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-04-07 02:52:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14489
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/14489] alternate keywords for visibility attribute
2004-03-08 20:39 [Bug c/14489] New: alternate keywords for visibility attribute markus+gcc at gyger dot org
2004-03-08 20:43 ` [Bug c/14489] " pinskia at gcc dot gnu dot org
2004-04-07 2:52 ` pinskia at gcc dot gnu dot org
@ 2005-05-25 14:29 ` markus+gcc at gyger dot org
2 siblings, 0 replies; 4+ messages in thread
From: markus+gcc at gyger dot org @ 2005-05-25 14:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From markus+gcc at gyger dot org 2005-05-25 14:15 -------
> http://docs.sun.com/source/817-0924/sun.specific.html#83476
>
http://developers.sun.com/tools/cc/documentation/s1s8cc_documentation/READMEs/c.html#feature13
Updated link for SS10, and a usage article:
http://docs.sun.com/source/819-0494/sun.specific.html#83476
http://developers.sun.com/tools/cc/articles/symbol_scope.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14489
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-05-25 14:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-08 20:39 [Bug c/14489] New: alternate keywords for visibility attribute markus+gcc at gyger dot org
2004-03-08 20:43 ` [Bug c/14489] " pinskia at gcc dot gnu dot org
2004-04-07 2:52 ` pinskia at gcc dot gnu dot org
2005-05-25 14:29 ` markus+gcc at gyger 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).