From: Jason Merrill Date: Thu, 23 Mar 2006 04:20:38 +0000 (-0500) Subject: name-lookup.c (push_namespace_with_attribs): Only apply hidden visibility to anonymou... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61edcf65926ee470cf0e67f9277863299aa96018;p=gcc.git name-lookup.c (push_namespace_with_attribs): Only apply hidden visibility to anonymous namespaces if HAVE_GAS_HIDDEN. 2006-03-22 Jason Merrill * name-lookup.c (push_namespace_with_attribs): Only apply hidden visibility to anonymous namespaces if HAVE_GAS_HIDDEN. From-SVN: r112312 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6a8c8461fdc..a1333e5d682 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2006-03-22 Jason Merrill + + * name-lookup.c (push_namespace_with_attribs): Only apply hidden + visibility to anonymous namespaces if HAVE_GAS_HIDDEN. + 2006-03-21 Jakub Jelinek PR c++/26691 diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 4af73a30763..5aa16f1f373 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -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