PR C++/19664
* decl2.c (determine_visibility): Don't set visibility to
hidden if it has been set explicitly by user.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99861
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR C++/19664
+ * decl2.c (determine_visibility): Don't set visibility to
+ hidden if it has been set explicitly by user.
+
2005-05-17 Mike Stump <mrs@apple.com>
Yet more Objective-C++...
2005-05-17 Mike Stump <mrs@apple.com>
Yet more Objective-C++...
&& DECL_DECLARED_INLINE_P (decl)
&& visibility_options.inlines_hidden)
{
&& DECL_DECLARED_INLINE_P (decl)
&& visibility_options.inlines_hidden)
{
- DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN;
- DECL_VISIBILITY_SPECIFIED (decl) = 1;
+ /* Don't change it if it has been set explicitly by user. */
+ if (!DECL_VISIBILITY_SPECIFIED (decl))
+ {
+ DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN;
+ DECL_VISIBILITY_SPECIFIED (decl) = 1;
+ }
}
else if (CLASSTYPE_VISIBILITY_SPECIFIED (class_type))
{
}
else if (CLASSTYPE_VISIBILITY_SPECIFIED (class_type))
{