]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/c-common.c
* c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
authoraustern <austern@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Nov 2003 22:08:26 +0000 (22:08 +0000)
committeraustern <austern@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Nov 2003 22:08:26 +0000 (22:08 +0000)
commit9c40570af36d485a0b1b2cf8c5d0dc3a047cfaaa
treec4ffb9b377ba06be592c6688dd70529152203fd4
parent5772d010eebef46859ae8e17830217b02548d970
* c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
field instead of hanging an attribute object off the decl.
* tree.h (DECL_VISIBLITY): New accessor macro for
symbol_visibility field in struct tree_decl.
(enum symbol_visibility): Move definition to before tree_decl.
(struct tree_decl): Define new two-bit field, symbol_visibility.
(decl_visibility): Remove declaration.
* varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
instead of decl_visibility.
(default_binds_local_p_1):  Use DECL_VISIBILITY instead of
decl_visibility.
(decl_visibility): Remove.
* cp/decl.c (duplicate_decls): copy DECL_VISIBILITY field.
* cp/method.c (use_thunk): give thunk same visibility as function.
* cp/optimize.c (maybe_clone_body): copy DECL_VISIBILITY field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73320 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-common.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/method.c
gcc/cp/optimize.c
gcc/tree.h
gcc/varasm.c