This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ Visibility regressions
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 22 Mar 2006 23:21:58 -0500
- Subject: Re: C++ Visibility regressions
Jason supplied the appended patch, which I tested on AIX and
committed with his approval from IRC.
David
* name-lookup.c (push_namespace_with_attribs): Only apply hidden
visibility to anonymous namespaces if HAVE_GAS_HIDDEN.
Index: name-lookup.c
===================================================================
*** name-lookup.c (revision 112311)
--- name-lookup.c (working copy)
*************** push_namespace_with_attribs (tree name,
*** 3066,3071 ****
--- 3066,3072 ----
push_visibility (TREE_STRING_POINTER (x));
goto found;
}
+ #ifdef HAVE_GAS_HIDDEN
if (anon)
{
/* Anonymous namespaces default to hidden visibility. This might
*************** push_namespace_with_attribs (tree name,
*** 3073,3078 ****
--- 3074,3080 ----
current_binding_level->has_visibility = 1;
push_visibility ("hidden");
}
+ #endif
found:
#endif