OSDN Git Service

* name-lookup.c (push_namespace_with_attribs): Temporarily disable
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Apr 2006 22:32:25 +0000 (22:32 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Apr 2006 22:32:25 +0000 (22:32 +0000)
        default hidden visibility for anonymous namespace.

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

gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/g++.dg/ext/visibility/anon1.C

index 67de4f7..96191a2 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-05  Jason Merrill  <jason@redhat.com>
+
+       * name-lookup.c (push_namespace_with_attribs): Temporarily disable
+       default hidden visibility for anonymous namespace.
+
 2006-03-29  Roger Sayle  <roger@eyesopen.com>
 
        PR c++/22494
index 5aa16f1..e41d54f 100644 (file)
@@ -3066,7 +3066,7 @@ push_namespace_with_attribs (tree name, tree attributes)
       push_visibility (TREE_STRING_POINTER (x));
       goto found;
     }
-#ifdef HAVE_GAS_HIDDEN
+#if 0
   if (anon)
     {
       /* Anonymous namespaces default to hidden visibility.  This might
index 9a3d8a7..81e9270 100644 (file)
@@ -2,7 +2,7 @@
 // Test for anonymous namespace default hidden visibility
 
 // { dg-require-visibility "" }
-// { dg-final { scan-hidden "_ZN.*1fEv" } }
+// { dg-final-NOT { scan-hidden "_ZN.*1fEv" } }
 
 namespace
 {