diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2010-05-10 13:01:58 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2010-05-10 13:01:58 +0000 |
commit | a93e18990b2c6accce760b35a54e5fc5224e146d (patch) | |
tree | 4e9599926518369aa6839349ab0c6ff415cfb4f4 /gcc | |
parent | f5dbb57cce8c2e929b60924ce4614f9d6d65dc44 (diff) | |
download | gcc-a93e18990b2c6accce760b35a54e5fc5224e146d.zip gcc-a93e18990b2c6accce760b35a54e5fc5224e146d.tar.gz gcc-a93e18990b2c6accce760b35a54e5fc5224e146d.tar.bz2 |
sol2.c (solaris_assemble_visibility): Declare decl, vis unused.
* 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.
From-SVN: r159218
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/config/sol2.c | 7 | ||||
-rwxr-xr-x | gcc/configure | 2 | ||||
-rw-r--r-- | gcc/configure.ac | 2 |
4 files changed, 16 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 555a1ab..31f0435 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * 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. + 2010-05-10 Richard Guenther <rguenther@suse.de> * lto-symtab.c (lto_symtab_entry_marked_p): Make entry diff --git a/gcc/config/sol2.c b/gcc/config/sol2.c index 32fa4f3..7c5f647 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"); diff --git a/gcc/configure b/gcc/configure index 17effda..0f9779f 100755 --- a/gcc/configure +++ b/gcc/configure @@ -21343,6 +21343,8 @@ else gcc_cv_ld_hidden=yes ;; *-*-solaris2.9* | *-*-solaris2.1[0-9]*) + # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but + # .symbolic was only added in Solaris 9 12/02. gcc_cv_ld_hidden=yes ;; *) diff --git a/gcc/configure.ac b/gcc/configure.ac index cd31f4e..aa0fa4c 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -2225,6 +2225,8 @@ else gcc_cv_ld_hidden=yes ;; *-*-solaris2.9* | *-*-solaris2.1[0-9]*) + # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but + # .symbolic was only added in Solaris 9 12/02. gcc_cv_ld_hidden=yes ;; *) |