summaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog11
-rw-r--r--gcc/cp/name-lookup.c2
-rw-r--r--gcc/cp/parser.c2
-rw-r--r--gcc/cp/rtti.c4
4 files changed, 15 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 2182bb1f97e..044b5689747 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,14 @@
+2009-11-02 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/41774
+ * name-lookup.c (handle_namespace_attrs): Pass 1 as last argument to
+ push_visibility.
+ * parser.c (cp_parser_namespace_definition): Pass 1 as argument to
+ pop_visibility.
+ * rtti.c (push_abi_namespace): Pass 2 as last argument to
+ push_visibility.
+ (pop_abi_namespace): Pass 2 as argument to pop_visibility.
+
2009-10-31 Jason Merrill <jason@redhat.com>
* tree.c (cv_unqualified): New fn.
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index 8089427f956..25c8ac0aa62 100644
--- a/gcc/cp/name-lookup.c
+++ b/gcc/cp/name-lookup.c
@@ -3219,7 +3219,7 @@ handle_namespace_attrs (tree ns, tree attributes)
"%qD attribute is meaningless since members of the "
"anonymous namespace get local symbols", name);
- push_visibility (TREE_STRING_POINTER (x));
+ push_visibility (TREE_STRING_POINTER (x), 1);
saw_vis = true;
}
else
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 2a0cc37d877..b24d6b1c0e9 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -12846,7 +12846,7 @@ cp_parser_namespace_definition (cp_parser* parser)
#ifdef HANDLE_PRAGMA_VISIBILITY
if (has_visibility)
- pop_visibility ();
+ pop_visibility (1);
#endif
/* Finish the namespace. */
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c
index c7af74a073e..3fb6d11c0ce 100644
--- a/gcc/cp/rtti.c
+++ b/gcc/cp/rtti.c
@@ -128,13 +128,13 @@ static void
push_abi_namespace (void)
{
push_nested_namespace (abi_node);
- push_visibility ("default");
+ push_visibility ("default", 2);
}
static void
pop_abi_namespace (void)
{
- pop_visibility ();
+ pop_visibility (2);
pop_nested_namespace (abi_node);
}