diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-10 13:01:58 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-10 13:01:58 +0000 |
commit | cbbd336d40408f2034d63036fa0bf7c5d900d84c (patch) | |
tree | 4e9599926518369aa6839349ab0c6ff415cfb4f4 /gcc/config/sol2.c | |
parent | f0ea8570881182295b51f8f8e90a7e43b3792691 (diff) | |
download | gcc-cbbd336d40408f2034d63036fa0bf7c5d900d84c.tar.gz |
* config/sol2.c (solaris_assemble_visibility): Declare decl, vis
unused.
Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
* configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
support in Sun ld.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159218 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sol2.c')
-rw-r--r-- | gcc/config/sol2.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/config/sol2.c b/gcc/config/sol2.c index 32fa4f354f2..7c5f647e3e8 100644 --- a/gcc/config/sol2.c +++ b/gcc/config/sol2.c @@ -122,8 +122,10 @@ solaris_output_init_fini (FILE *file, tree decl) the visibility type VIS, which must not be VISIBILITY_DEFAULT. */ void -solaris_assemble_visibility (tree decl, int vis) +solaris_assemble_visibility (tree decl ATTRIBUTE_UNUSED, + int vis ATTRIBUTE_UNUSED) { +#ifdef HAVE_GAS_HIDDEN /* Sun as uses .symbolic for STV_PROTECTED. STV_INTERNAL is marked as `currently reserved', but the linker treats it like STV_HIDDEN. Sun Studio 12.1 cc emits .hidden instead. @@ -146,9 +148,6 @@ solaris_assemble_visibility (tree decl, int vis) name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)); type = visibility_types[vis]; - /* .hidden dates back before Solaris 2.5, but .symbolic was only added in - Solaris 9 12/02. */ -#ifdef HAVE_GAS_HIDDEN fprintf (asm_out_file, "\t.%s\t", type); assemble_name (asm_out_file, name); fprintf (asm_out_file, "\n"); |