diff options
author | Jason Merrill <jason@redhat.com> | 2006-04-05 18:32:25 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2006-04-05 18:32:25 -0400 |
commit | 0b1307e51a847da7e46a42d2f76e0d407166be6b (patch) | |
tree | 86fdb3f8f9b2c230369f8408df3397eb647a67f5 /gcc | |
parent | dcef6abaf507eb9a29d837004460f2f15bb78b7c (diff) | |
download | gcc-0b1307e51a847da7e46a42d2f76e0d407166be6b.zip gcc-0b1307e51a847da7e46a42d2f76e0d407166be6b.tar.gz gcc-0b1307e51a847da7e46a42d2f76e0d407166be6b.tar.bz2 |
name-lookup.c (push_namespace_with_attribs): Temporarily disable default hidden visibility for anonymous namespace.
* name-lookup.c (push_namespace_with_attribs): Temporarily disable
default hidden visibility for anonymous namespace.
From-SVN: r112722
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/name-lookup.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ext/visibility/anon1.C | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 67de4f7..96191a2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 5aa16f1..e41d54f 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -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 diff --git a/gcc/testsuite/g++.dg/ext/visibility/anon1.C b/gcc/testsuite/g++.dg/ext/visibility/anon1.C index 9a3d8a7f..81e9270 100644 --- a/gcc/testsuite/g++.dg/ext/visibility/anon1.C +++ b/gcc/testsuite/g++.dg/ext/visibility/anon1.C @@ -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 { |