attribs.c (c_common_attribute_table): Add visibility.
authorJakub Jelinek <jakub@redhat.com>
Tue, 26 Feb 2002 21:17:22 +0000 (22:17 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 26 Feb 2002 21:17:22 +0000 (22:17 +0100)
commit47bd70b56aa4ccc10fd0e90a7fae4c94d991bb30
treebf177b7375ac3fceb1bd51f1f20b2ff845e3fbba
parent6d73371a68e805956981592bdc2a631acaab2a33
attribs.c (c_common_attribute_table): Add visibility.

* attribs.c (c_common_attribute_table): Add visibility.
(handle_visibility_attribute): New function.
* varasm.c (assemble_visibility): New function.
* output.h (assemble_visibility): Add prototype.
* tree.h (MODULE_LOCAL_P): Define.
* crtstuff.c (__dso_handle): Use visibility attribute.
* config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
for MODULE_LOCAL_P symbols too.
* config/ia64/ia64.c (ia64_encode_section_info): Handle
MODULE_LOCAL_P symbols the same way as local symbols.
Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
into .sdata/.sbss by the user.
* doc/extend.texi (Function Attributes): Document visibility
attribute.

* gcc.dg/ia64-visibility-1.c: New test.

From-SVN: r50061
gcc/ChangeLog
gcc/attribs.c
gcc/config/i386/i386.h
gcc/config/ia64/ia64.c
gcc/crtstuff.c
gcc/doc/extend.texi
gcc/output.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ia64-visibility-1.c [new file with mode: 0644]
gcc/tree.h
gcc/varasm.c