This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/9283] __attribute__((visibility ("hidden"))) not supported for class/struct
- From: "s_gccbugzilla at nedprod dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Feb 2004 19:33:41 -0000
- Subject: [Bug c++/9283] __attribute__((visibility ("hidden"))) not supported for class/struct
- References: <20030112104600.9283.mueller@kde.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From s_gccbugzilla at nedprod dot com 2004-02-20 19:33 -------
Can you change this line in your patch:
+ current_class_stack[current_class_depth].visibility = VISIBILITY_DEFAULT;
Make this:
+ current_class_stack[current_class_depth].visibility =
compilation_unit_visibility;
... and then declare where the command line args are parsed a:
static enum symbol_visibility compilation_unit_visibility = VISIBILITY_DEFAULT;
This makes it easier to add the -fvisibility=X command line switches to GCC
later on.
Cheers,
Niall
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9283