OSDN Git Service

2006-03-22 Jason Merrill <jason@redhat.com>
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Mar 2006 04:20:38 +0000 (04:20 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Mar 2006 04:20:38 +0000 (04:20 +0000)
        * name-lookup.c (push_namespace_with_attribs): Only apply hidden
        visibility to anonymous namespaces if HAVE_GAS_HIDDEN.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112312 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/name-lookup.c

index 6a8c846..a1333e5 100644 (file)
@@ -1,3 +1,8 @@
+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
index 4af73a3..5aa16f1 100644 (file)
@@ -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