Commit 61edcf65 by Jason Merrill Committed by David Edelsohn

name-lookup.c (push_namespace_with_attribs): Only apply hidden visibility to…

name-lookup.c (push_namespace_with_attribs): Only apply hidden visibility to anonymous namespaces if HAVE_GAS_HIDDEN.

2006-03-22  Jason Merrill  <jason@redhat.com>

        * name-lookup.c (push_namespace_with_attribs): Only apply hidden
        visibility to anonymous namespaces if HAVE_GAS_HIDDEN.

From-SVN: r112312
parent 2e066ed7
2006-03-22 Jason Merrill <jason@redhat.com>
* name-lookup.c (push_namespace_with_attribs): Only apply hidden
visibility to anonymous namespaces if HAVE_GAS_HIDDEN.
2006-03-21 Jakub Jelinek <jakub@redhat.com>
PR c++/26691
......
......@@ -3066,6 +3066,7 @@ push_namespace_with_attribs (tree name, tree attributes)
push_visibility (TREE_STRING_POINTER (x));
goto found;
}
#ifdef HAVE_GAS_HIDDEN
if (anon)
{
/* Anonymous namespaces default to hidden visibility. This might
......@@ -3073,6 +3074,7 @@ push_namespace_with_attribs (tree name, tree attributes)
current_binding_level->has_visibility = 1;
push_visibility ("hidden");
}
#endif
found:
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment