]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/32470 (fvisibility=hidden without effect in some cases)
authorJason Merrill <jason@redhat.com>
Tue, 9 Oct 2007 20:52:24 +0000 (16:52 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 9 Oct 2007 20:52:24 +0000 (16:52 -0400)
commit13eec6792693dd6d85605f321013f659baff873b
tree7a05711e410057e355934d9ad283b24251f53de8
parent73bd117ddd339d251d81a37ac57448e03e2f647b
re PR c++/32470 (fvisibility=hidden without effect in some cases)

        PR c++/32470
        * name-lookup.c (push_namespace_with_attrs): Fold back into...
        (push_namespace): Here.
        (handle_namespace_attrs): New fn for the attr code.
        (leave_scope): Don't pop_visibility.
        * name-lookup.h (struct cp_binding_level): Remove has_visibility.
        * parser.c (cp_parser_namespace_definition): Call
        handle_namespace_attrs and pop_visibility as appropriate.

        PR c++/33094
        * decl.c (make_rtl_for_nonlocal_decl): It's ok for a member
        constant to not have DECL_EXTERNAL if it's file-local.

From-SVN: r129180
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/cp/parser.c
gcc/testsuite/g++.dg/ext/visibility/anon6.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/visibility/namespace2.C [new file with mode: 0644]