aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorIain Sandoe <iains@gcc.gnu.org>2010-04-09 13:34:33 +0000
committerIain Sandoe <iains@gcc.gnu.org>2010-04-09 13:34:33 +0000
commit8351bca7e4147d3aef7dd3f1f20ce91e59d4e7af (patch)
treed6784490d07537190dfd92ff5e81eaa2360d99a9 /gcc/varasm.c
parent014753cc4d898e889ab04dcdb41bb6cc99645e69 (diff)
downloadgcc-8351bca7e4147d3aef7dd3f1f20ce91e59d4e7af.zip
gcc-8351bca7e4147d3aef7dd3f1f20ce91e59d4e7af.tar.gz
gcc-8351bca7e4147d3aef7dd3f1f20ce91e59d4e7af.tar.bz2
re PR bootstrap/43684 (multiple 'set but not used' errors.)
gcc/ 2010-04-09 Iain Sandoe <iains@gcc.gnu.org> PR bootstrap/43684 * varasm.c (default_assemble_visibility): Wrap vars that are set, but unused, by targets without GAS. * config/rs6000/rs6000.c: (paired_emit_vector_compare): Remove set, but unused, vars. (rs6000_legitimize_tls_address): Likewise. (altivec_expand_dst_builtin): Likewise. * config/darwin.c (machopic_classify_symbol): Likewise. (machopic_indirection_name): Likewise. gcc/fortran/ 2010-04-09 Iain Sandoe <iains@gcc.gnu.org> PR bootstrap/43684 * gfortranspec.c (lang_specific_driver): Do not expose vars only used by HAVE_LD_STATIC_DYNAMIC targets unless compiling for such. From-SVN: r158164
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index af9adff..229a370 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -5803,8 +5803,10 @@ assemble_alias (tree decl, tree target)
the visibility type VIS, which must not be VISIBILITY_DEFAULT. */
void
-default_assemble_visibility (tree decl, int vis)
+default_assemble_visibility (tree decl ATTRIBUTE_UNUSED,
+ int vis ATTRIBUTE_UNUSED)
{
+#ifdef HAVE_GAS_HIDDEN
static const char * const visibility_types[] = {
NULL, "protected", "hidden", "internal"
};
@@ -5814,7 +5816,6 @@ default_assemble_visibility (tree decl, int vis)
name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
type = visibility_types[vis];
-#ifdef HAVE_GAS_HIDDEN
fprintf (asm_out_file, "\t.%s\t", type);
assemble_name (asm_out_file, name);
fprintf (asm_out_file, "\n");